home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / faqs / linux-fa.sou / linux-fa / linux-faq.bfnn < prev    next >
Encoding:
Text File  |  1995-07-05  |  93.9 KB  |  2,442 lines

  1. \comment This is the source for the new Linux FAQ list, in
  2. \comment the Bizarre Format With No Name.  It is turned into Lout
  3. \comment input, plain ASCII and an Info document by a Perl script
  4. \comment
  5. \set brieftitle Linux FAQ
  6. \set author     <A href="http://www.cl.cam.ac.uk/users/iwj10/">Ian Jackson</A> / <A href="http://www.cl.cam.ac.uk/users/iwj10/contact.html">ijackson@nyx.cs.du.edu</A>
  7. \set authormail iwj10@cus.cam.ac.uk
  8. \set title      Linux Frequently Asked Questions with Answers
  9. \set copyholder Ian Jackson
  10. \set copyrightref faqcopyright
  11. \call-lout startup
  12. \call-html startup html.refs
  13. \copyto ASCII
  14.             LINUX FREQUENTLY ASKED QUESTIONS WITH ANSWERS
  15.                             `date '+%d %b %Y'`
  16.                 Ian Jackson <ijackson@nyx.cs.du.edu>
  17.  
  18. \endcopy
  19. \copyto POST
  20. #!/bin/sh
  21. set -e
  22. test ian@chiark = `whoami`@`hostname`
  23. cat <<'END-OF-HEADER' >linux-faq.post-part1
  24. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  25. Newsgroups: comp.os.linux.answers,comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  26. Subject: Linux Frequently Asked Questions with Answers (FAQ: 1/2)
  27. Keywords: FAQ, Linux, part1
  28. Summary: Please read the whole FAQ before posting to comp.os.linux.help.
  29. Followup-To: poster
  30. Approved: *.answers moderation team <news-answers-request@mit.edu>,
  31.           Matt Welsh <linux-answers-request@news.ornl.gov>
  32. `./expirydate`
  33.  
  34. Archive-Name: linux/faq/part1
  35. Last-Modified: `date '+%d %b %Y'`
  36.  
  37. END-OF-HEADER
  38. pgp-auto +batchmode +force -fast <<'END-OF-PORTION' >>linux-faq.post-part1
  39. \endcopy
  40. \copyto LOUT
  41. @Doc @Text @Begin
  42. @CenteredDisplay clines @Break {
  43. +5p @Font Bold @Font { Linux Frequently Asked Questions with Answers }
  44. -2p @Font {Ian Jackson {0.7 1.0} @Scale {Courier Bold} @Font "<ijackson@nyx.cs.du.edu>"}
  45. `date '+%d %B %Y'`
  46. }
  47. \endcopy
  48. \copyto INFO
  49. START-INFO-DIR-ENTRY
  50. * Linux FAQ: (linux-faq). Linux Frequently Asked Questions with Answers.
  51. END-INFO-DIR-ENTRY
  52.  
  53. 
  54. File: $prefix.info, Node: Top, Next: Question 1.1, Up: (dir)
  55.  
  56.             LINUX FREQUENTLY ASKED QUESTIONS WITH ANSWERS
  57.                             `date '+%d %b %Y'`
  58.                 Ian Jackson <ijackson@nyx.cs.du.edu>
  59.  
  60. \endcopy
  61.  
  62. This is the list of Frequently Asked Questions about Linux, the free
  63. Unix for 386/486/586 [see \qref whatislinux for more details].  It
  64. should be read in conjunction with the HOWTO documents, which are
  65. available in
  66. \call startlist
  67. \call item
  68. \ftpon ftp.funet.fi (128.214.6.100) : \ftpin /pub/OS/Linux/doc/HOWTO
  69. \call item
  70. \ftpon tsx-11.mit.edu (18.172.1.2) : \ftpin /pub/linux/docs/HOWTO
  71. \call item
  72. \ftpon sunsite.unc.edu (152.2.22.81) : \ftpin /pub/Linux/docs/HOWTO
  73. \call endlist
  74. and mirror sites thereof -- see \qref ftpsites.  See \qref howtos for
  75. a list of the HOWTOs and more information.  The \docref INFO-SHEET and
  76. \docref META-FAQ, found in the same place, also list other sources
  77. of Linux information.
  78.  
  79. The \docref{Linux Documentation Project\} documentation is available
  80. on \ftpon sunsite.unc.edu in \ftpin /pub/Linux/docs/LDP.  These
  81. documents (more are in preparation) are invaluable to the newcomer or
  82. for use as a reference work.
  83.  
  84. Please check out these documents and this FAQ, especially \qref
  85. notanswered, before posting your question to a newsgroup.
  86.  
  87. See \qref formats for details of where to get the PostScript, Emacs
  88. Info, HTML (WWW) and plain ASCII versions of this document.
  89.  
  90. \only post
  91. You can skip to a particular question by searching for `Question n.n'.
  92.  
  93. Note that this posting has been split into two parts because of its
  94. size.
  95. \endonly
  96.  
  97. A new version of this document appears approximately monthly.
  98. If this copy is more than a month old it may be out of date.
  99.  
  100. \section  Index
  101.  
  102. \index
  103.  
  104. \comment ######################################################################
  105.  
  106. \section  Introduction and General Information
  107.  
  108. \question 18sep:whatislinux  What is Linux ?
  109.  
  110. Linux is a Unix clone written from scratch by Linus Torvalds with
  111. assistance from a loosely-knit team of hackers across the Net.  It
  112. aims towards POSIX compliance.
  113.  
  114. It has all the features you would expect in a modern fully-fledged
  115. Unix, including true multitasking, virtual memory, shared libraries,
  116. demand loading, shared copy-on-write executables, proper memory
  117. management and TCP/IP networking.
  118.  
  119. It runs mainly on 386/486/586-based PCs, using the hardware facilities
  120. of the 386 processor family (TSS segments et al) to implement these
  121. features.  Ports to other architectures are underway [\qref cpu].
  122.  
  123. See the Linux \docref INFO-SHEET [\qref howtos] for more details.
  124.  
  125. The Linux kernel is distributed under the GNU General Public License -
  126. see \qref copyright for more details.
  127.  
  128.  
  129. \question 09sep:supportedsoftware  What software does it support ?
  130.  
  131. Linux has GCC, Emacs, X-Windows, all the standard Unix utilities,
  132. TCP/IP (including SLIP and PPP) and all the hundreds of programs that
  133. people have compiled or ported for it.
  134.  
  135. There is a DOS emulator (look on \ftpon tsx-11.mit.edu in \ftpin
  136. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not
  137. all) DOS applications.
  138.  
  139. An iBCS2 (Intel Binary Compatibility Standard) emulator for SVR4 ELF
  140. and SVR3.2 COFF binaries is at a fairly advanced stage of development.
  141. See the file \ftpsilent{tsx-11.mit.edu\}\ftpin
  142. /pub/linux/BETA/ibcs2/README on \ftpon tsx-11.mit.edu.
  143.  
  144. Work is progressing on an emulator for Microsoft Windows binaries
  145. [\qref wine]; alternatively, I'm told that the DOS emulator team have
  146. been having some success getting MS Windows to run inside dosemu -
  147. there will be an announcement if and when they get it working.
  148.  
  149. For more information see the \docref INFO-SHEET, which is one of the
  150. the HOWTOs [\qref howtos].  See also \qref compiling.
  151.  
  152. Some companies have commercial software available, including Motif.
  153. They announce their availability in \newsgroup comp.os.linux.announce
  154. --- try searching the archives [\qref newsarchives].
  155.  
  156.  
  157. \question 09sep  Does it run on my computer ?  What hardware is supported ?
  158.  
  159. You need a 386, 486 or 586, with at least 2Mb of RAM and a single
  160. floppy, to try it out.  To do anything useful more RAM and a hard disk
  161. are required.
  162.  
  163. VESA local bus and PCI are both supported.  A driver for the NCR SCSI
  164. chip in many PCI machines is included in current alpha test release
  165. kernels.
  166.  
  167. There are problems with machines using MCA (IBM's proprietary bus),
  168. mainly to do with the hard disk controller.  There is a developers'
  169. release for PS/2 ESDI drives on \ftpon invaders.dcrl.nd.edu in \ftpin
  170. /pub/misc/linux.  Certain kinds of SCSI controllers also work, I
  171. understand.  Work is in progress to create a suitable version of the
  172. Slackware distribution.  I'm afraid I don't have any further details;
  173. you could try asking Arindam Banerji \email axb@defender.dcrl.nd.edu.
  174.  
  175. Linux is reported to run on 386 family based laptops, with X on most
  176. of them.
  177.  
  178. For details of exactly which PC's, video cards, disk controllers, etc.
  179. work see the \docref INFO-SHEET and the \docref{Hardware HOWTO\}
  180. [\qref howtos].
  181.  
  182. Linux will never run on a 286, because it requires task-switching and
  183. memory management facilities not found on 286 processors.
  184.  
  185. Linux does not currently support multiprocessor machines, though some
  186. experienced developers are working on the problem.
  187.  
  188.  
  189. \question 07sep:cpu  What ports to other processors are there ?
  190.  
  191. A project has been underway for a while to port Linux to suitable
  192. 68000-series based systems such as Amigas and Ataris.  This has now
  193. reached beta test quality and there is an X server.  There is a
  194. \fn linux-680x0 mailing list [\qref multilist], and a
  195. \docref{Linux/68K FAQ\} at
  196. \courier{http://pfah.informatik.uni-kl.de:8000/pers/jmayer/linux68k-faq\}
  197. and on \fn tsx-11.mit.edu in \fn /pub/linux/680x0/FAQ.gz; further
  198. information is at
  199. \docref{\fn http://www-users.informatik.rwth-aachen.de/~hn/linux68k.html\}.
  200. There is a mailing list for the Atari port - mail \email
  201. majordomo@phil.uni-sb.de with a body containing only
  202. \courier{subscribe atarix\} - and an ftp area on \ftpon
  203. ftp.phil.uni-sb.de in \ftpin /pub/atari/linux.
  204.  
  205. Information about a port to 68K-based Macintoshes can be found in the
  206. MacLinux FAQ, available on \ftpon www.ibg.uu.se in \ftpin
  207. /pub/maclinux/FAQ.txt.  Other stuff may be in the same directory.
  208. There is a mailing list.  Rumour has it that this project is dead.
  209.  
  210. Work has just been started on a port to the PowerPC (PowerStack,
  211. RS/6000 and NuBus machines are being worked on simultaneously).
  212. Again, don't post asking about it unless you have experience to offer,
  213. and don't hold your breath.  There is a mailing list [\qref multilist]
  214. and a FAQ on \ftpon liber.stanford.edu in \ftpin
  215. /pub/linuxppc/linux-ppc-FAQ or on the WWW at
  216. \docref{\fn http://liber.stanford.edu/linuxppc/linux-ppc-FAQ.html\}.
  217.  
  218. Both Linus and Jim Paradis \email paradis@sousa.amt.ako.dec.com or
  219. \email jrp@world.std.com are working on ports to the 64-bit DEC AXP
  220. (the Alpha).  Again, there is a mailing list at \fn vger.rutgers.edu.
  221.  
  222. Ralf Baechle is working on a port to the MIPS, initially for the R4600
  223. on Deskstation Tyne machines.  The \docref{Linux/MIPS FAQ\} is
  224. available on the WWW and in the MIPS port area on \ftpon
  225. ftp.waldorf-gmbh.de in \ftpin /pub/linux/mips.  There is also a \fn
  226. MIPS channel on the Linux Activists mailserver and a \fn linux-mips
  227. mailing list [\qref multilist].  Interested people may mail their
  228. questions and offers of assistance to \email linux@waldorf-gmbh.de.
  229.  
  230. There are currently two ports of Linux to the ARM family of processors
  231. ongoing; one of these is to the ARM3 as fitted to the Acorn A5000, and
  232. includes I/O drivers for the 82710/11 as appropriate, and the other is
  233. to the ARM610 as fitted to the Acorn Risc PC.  The Risc PC port is
  234. currently in its early to middle stages, owing to the need to rewrite
  235. much of the memory handling.  The A5000 port is in restricted beta
  236. testing; a release is likely fairly soon.  For more up to date
  237. information watch the newsgroup \newsgroup comp.sys.acorn.misc, or
  238. look on the WWW at
  239. \docref{\fn http://whirligig.ecs.soton.ac.uk/~rmk92/armlinux.html\};
  240. if you want to volunteer you should contact Martin Ebourne \email
  241. mje@soton.ac.uk.
  242.  
  243. None of the above ports will be capable of running Linux/386 binaries.
  244.  
  245. Linux port to the Aleph 1 486 card (\italic{not\} the second processor
  246. card for the Risc PC yet, but the original PC-on-a-podule card) has
  247. been completed and appears stable.  Full details on this version, and
  248. updates on general ports in progress, can be found on the WWW at
  249. \docref{\fn http://www.ph.kcl.ac.uk/~amb/linux.html\}.
  250.  
  251.  
  252. \question 18sep  How much hard disk space does Linux need ?
  253.  
  254. 10Mb for a very minimal installation, suitable for trying it out and
  255. not much else.
  256.  
  257. You can squeeze a more complete installation including X Windows into
  258. 80Mb.  Installating the whole of Slackware 1.2 takes around 200Mb,
  259. including some space for user files and spool areas.
  260.  
  261.  
  262. \question 09sep:copyright  Is Linux PD ?  Copyrighted ?
  263.  
  264. The Linux kernel copyright belongs to Linus Torvalds.  He has placed
  265. it under the GNU General Public Licence, which basically means that
  266. you may freely copy, change and distribute it, but that you may not
  267. impose any restrictions on further distribution, and that you must
  268. make the source code available.  This is not the same as Public Domain
  269. (see the \docref{Copyright FAQ\}, available on \fn rtfm.mit.edu in \fn
  270. /pub/usenet/news.answers/law/Copyright-FAQ, for details).
  271.  
  272. Full details are in the file \fn COPYING in the Linux kernel sources
  273. (probably in \fn /usr/src/linux on your system).
  274.  
  275. The licences of the utilities and programs which come with the
  276. installations vary; much of the code is from the GNU Project at the
  277. Free Software Foundation, and is also under the GPL.
  278.  
  279. Note that discussion about the merits or otherwise of the GPL should
  280. be posted to \newsgroup gnu.misc.discuss and not to the \fn
  281. comp.os.linux groups.
  282.  
  283.  
  284. \comment #######################################################################
  285.  
  286. \section  Network sources and resources
  287.  
  288. \question 18sep:howtos  Where can I get the HOWTOs and other documentation ?
  289.  
  290. Look in the following places, and on sites that mirror them.
  291. \call startlist
  292. \call item
  293. \ftpon ftp.funet.fi (128.214.6.100) : \ftpin /pub/OS/Linux/doc/HOWTO
  294. \call item
  295. \ftpon tsx-11.mit.edu (18.172.1.2) : \ftpin /pub/linux/docs/HOWTO
  296. \call item
  297. \ftpon sunsite.unc.edu (152.2.22.81) : \ftpin /pub/Linux/docs/HOWTO
  298. \call endlist
  299. For a complete list of Linux FTP sites see \qref ftpsites.
  300.  
  301. If you don't have access to FTP try using the FTP-by-mail servers at
  302. \fn ftpmail@decwrl.dec.com, \fn ftpmail@doc.ic.ac.uk or \fn
  303. ftp-mailer@informatik.tu-muenchen.de.
  304.  
  305. A complete list of HOWTO's is available in the file \fn HOWTO.INDEX in
  306. the \fn docs/HOWTO directory at the FTP sites, but here is a (possibly
  307. incomplete) list:
  308.  
  309. \call startpackedlist
  310. \call packeditem
  311. Linux \docref INFO-SHEET
  312. \call packeditem
  313. Linux \docref META-FAQ
  314. \call packeditem
  315. \docref{BUPS HOWTO\} (re the Back UPS).
  316. \call packeditem
  317. \docref{Busmouse HOWTO\}
  318. \call packeditem
  319. \docref{CDROM HOWTO\}
  320. \call packeditem
  321. \docref{Commercial HOWTO\}
  322. \call packeditem
  323. \docref{Danish HOWTO\}
  324. \call packeditem
  325. \docref{Distribution HOWTO\}
  326. \call packeditem
  327. \docref{DOSEMU HOWTO\}
  328. \call packeditem
  329. \docref{ELF HOWTO\}
  330. \call packeditem
  331. \docref{Ethernet HOWTO\}
  332. \call packeditem
  333. \docref{Ftape HOWTO\}
  334. \call packeditem
  335. \docref{German HOWTO\}
  336. \call packeditem
  337. \docref{HAM HOWTO\}
  338. \call packeditem
  339. \docref{Hardware HOWTO\}
  340. \call packeditem
  341. \docref{Installation HOWTO\}
  342. \call packeditem
  343. \docref{Japanese Extensions HOWTO\}
  344. \call packeditem
  345. \docref{Kernel HOWTO\}
  346. \call packeditem
  347. \docref{Keystroke HOWTO\}
  348. \call packeditem
  349. \docref{Mail HOWTO\}
  350. \call packeditem
  351. \docref{MGR HOWTO\}
  352. \call packeditem
  353. \docref{NET-2 HOWTO\}
  354. \call packeditem
  355. \docref{News HOWTO\}
  356. \call packeditem
  357. \docref{NIS HOWTO\} (NIS=Sun's YP)
  358. \call packeditem
  359. \docref{PCI HOWTO\}
  360. \call packeditem
  361. \docref{PCMCIA HOWTO\}
  362. \call packeditem
  363. \docref{Printing HOWTO\}
  364. \call packeditem
  365. \docref{PPP HOWTO\}
  366. \call packeditem
  367. \docref{SCSI HOWTO\}
  368. \call packeditem
  369. \docref{SCSI-Programming HOWTO\}
  370. \call packeditem
  371. \docref{Serial HOWTO\}
  372. \call packeditem
  373. \docref{Sound HOWTO\}
  374. \call packeditem
  375. \docref{Term HOWTO\}
  376. \call packeditem
  377. \docref{Tips HOWTO\}
  378. \call packeditem
  379. \docref{UUCP HOWTO\}
  380. \call packeditem
  381. \docref{UPS HOWTO\}
  382. \call packeditem
  383. \docref{XFree86 HOWTO\}
  384. \call endpackedlist
  385.  
  386. More of these documents are always in preparation.  You should check
  387. in nearby directories on the FTP sites if you can't find the answer in
  388. one of the HOWTOs.  There are also several \docref{mini-HOWTOs\} on \fn
  389. sunsite.unc.edu in the \fn /pub/Linux/docs/HOWTO/mini directory.
  390.  
  391. The file \fn WRITING contains
  392. \docref{information on how to write a new HOWTO\}.
  393.  
  394. The HOWTOs are coordinated by Greg Hankins, \email
  395. gregh@cc.gatech.edu.
  396.  
  397. The `books' produced by the Linux Documentation Project are available
  398. in \ftpsilent{sunsite.unc.edu\}\ftpin /pub/Linux/docs/LDP on \fn
  399. sunsite.unc.edu.  Please read them if you are new to Unix and Linux.
  400. Here is a list of those released so far:
  401. \call startlist
  402. \call item
  403. \docref{The Linux Documentation Project manifesto\}
  404. \call item
  405. \docref{Installation and Getting Started Guide\}
  406. \call item
  407. \docref{The Kernel Hacker's Guide\}
  408. \call item
  409. \docref{Network Administration Guide\}
  410. \call item
  411. \docref{Linux System Administrator's Guide\}
  412.  
  413. \call endlist
  414.  
  415. \question 09sep  Where should I look on the World Wide Web for Linux stuff ?
  416.  
  417. Matt Welsh maintains the Linux Documentation Project Home Page, at
  418. \docref{\fn http://sunsite.unc.edu/mdw/linux.html\}.
  419.  
  420. This page refers to all the FAQs and HOWTOs, both those which are
  421. available in HTML (WWW) format, like this FAQ, and those which aren't.
  422.  
  423.  
  424. \question 18sep:newsgroups  What newsgroups are there for Linux ?
  425.  
  426. There are ten international Usenet newsgroups devoted to Linux.
  427.  
  428. \newsgroup comp.os.linux.announce is the moderated announcements
  429. group; you should read this if you intend to use Linux.  Submissions
  430. for that group should be emailed to \fn linux-announce@news.ornl.gov.
  431.  
  432. \newsgroup comp.os.linux.answers contains all the FAQs, HOWTOs and
  433. other important documentation.  You should subscribe to this too.
  434.  
  435. Also worth reading are the other groups in the
  436. \courier{comp.os.linux.*\} hierarchy -- you may find that many common
  437. problems are too recent to find in this FAQ but are answered in the
  438. newsgroups.  These groups are \newsgroup comp.os.linux.setup,
  439. \newsgroup comp.os.linux.hardware, \newsgroup
  440. comp.os.linux.networking, \newsgroup comp.os.linux.x, \newsgroup
  441. comp.os.linux.development.apps, \newsgroup
  442. comp.os.linux.development.system, \newsgroup comp.os.linux.advocacy
  443. and \newsgroup comp.os.linux.misc.
  444.  
  445. Remember that since Linux is a Unix clone, most all of the material in
  446. \courier{comp.unix.*\} and \courier{comp.windows.x.*\} groups will be
  447. relevant.  Apart from hardware considerations, and some obscure or
  448. very technical low-level issues, you'll find that these groups are the
  449. right place to start.
  450.  
  451. Please read \qref notanswered before posting, and make sure you post
  452. to the right newsgroup -- see `Welcome to the
  453. \courier{comp.os.linux.*\} hierarchy' which is posted every two weeks
  454. to \newsgroup comp.os.linux.announce, \newsgroup comp.os.linux.answers
  455. and other groups.
  456.  
  457. Crossposting between different \courier{comp.os.linux.*\} groups is
  458. rarely a good idea.
  459.  
  460. There may well be Linux groups local to your institution or area -
  461. check there first.
  462.  
  463. The groups \newsgroup comp.os.linux.development, \newsgroup
  464. comp.os.linux.admin and \newsgroup comp.os.linux.help were superseded
  465. in a recent newsgroup reorganisation.  You should no longer use them.
  466.  
  467. See also \qref nousenet.
  468.  
  469. Other regional and local newsgroups also exist - you may find the
  470. traffic more manageable there.  The French Linux newsgroup is
  471. \newsgroup fr.comp.os.linux; The German one is \newsgroup
  472. de.comp.os.linux.  In Australia, try \newsgroup aus.computers.linux.
  473. In Croatia there is the moderated group \newsgroup hr.comp.linux.m.
  474.  
  475.  
  476. \question 18sep:howinstall  How do I install Linux ?
  477.  
  478. There are several pre-packaged releases of Linux available, including
  479. the MCC-Interim release, the TAMU release and the Slackware release.
  480. Each contains the software you need to run Linux, ready to install and
  481. use.  The exact details of which software is included and how to
  482. install them vary from release to release.
  483.  
  484. You should read the Installation HOWTO for more details on how to go
  485. about installing Slackware.  If you prefer a small, clean distribution
  486. to one with everything but the kitchen sink you might like to try the
  487. MCC-Interim release.
  488.  
  489. All of those releases are available via anonymous FTP from the Linux
  490. archive sites [\qref ftpsites].  There are also a large number of
  491. other releases which are distributed less globally, which suit special
  492. local and national requirements (for example, better
  493. internationalisation support).
  494.  
  495.  
  496. \question 09sep:ftpsites  Where can I get Linux material by FTP ?
  497.  
  498. There are three main archive sites for Linux:
  499. \call startlist
  500. \call item
  501. \ftpon ftp.funet.fi (Finland, 128.214.6.100) : \ftpin /pub/OS/Linux
  502. \call item
  503. \ftpon sunsite.unc.edu (US, 152.2.22.81) : \ftpin /pub/Linux
  504. \call item
  505. \ftpon tsx-11.mit.edu (US, 18.172.1.2) : \ftpin /pub/linux
  506. \call endlist
  507.  
  508. The MCC-Interim release is available from \ftpon ftp.mcc.ac.uk (UK,
  509. 130.88.200.7) in \ftpin /pub/linux; the TAMU release is available from
  510. \ftpon net.tamu.edu (US, 128.194.177.1) in \ftpin /pub/linux.
  511.  
  512. The contents of these sites is mirrored (copied, usually approximately
  513. daily) by a number of other sites.  Please use one close to you --
  514. that will be faster for you and easier on the network.
  515. \call startlist
  516. \call item
  517. \ftpon{src.doc.ic.ac.uk\} : \ftpin{/packages/Linux\} (UK)
  518. \call item
  519. \ftpon{sunacm.swan.ac.uk\} : \ftpin{/pub/Linux\} (UK)
  520. \call item
  521. \ftpon{ftp.ibp.fr\} : \ftpin{/pub/linux\} (France)
  522. \call item
  523. \ftpon{ftp.cc.gatech.edu\} : \ftpin{/pub/linux\} (US - southeast: Suranet)
  524. \call item
  525. \ftpon{wuarchive.wustl.edu\} : \ftpin{/systems/linux\} (US)
  526. \call item
  527. \ftpon{mrcnext.cso.uiuc.edu\} : \ftpin{/pub/linux\} (US)
  528. \call item
  529. \ftpon{ftp.cdrom.com\} : \ftpin{/pub/linux\} (US)
  530. \call item
  531. \ftpon{ftp.informatik.tu-muenchen.de\} : \ftpin{/pub/comp/os/linux\} (Germany)
  532. \call item
  533. \ftpon{ftp.ibr.cs.tu-bs.de\} : \ftpin{/pub/os/linux\} (Germany)
  534. \call item
  535. \ftpon{ftp.dfv.rwth-aachen.de\} : \ftpin{/pub/linux\} (Germany)
  536. \call item
  537. \ftpon{ftp.informatik.rwth-aachen.de\} : \ftpin{/pub/Linux\} (Germany)
  538. \call item
  539. \ftpon{bond.edu.au\} : \ftpin{/pub/OS/Linux\} (Australia)
  540. \call item
  541. \ftpon{monu1.cc.monash.edu.au\} : \ftpin{/pub/linux\} (Australia)
  542. \call item
  543. \ftpon{ftp.dstc.edu.au\} : \ftpin{/pub/Linux\} (Australia: Queensland)
  544. \call item
  545. \ftpon{ftp.sun.ac.za\} : \ftpin{/pub/linux\} (South Africa)
  546. \call item
  547. \ftpon{ftp.inf.utfsm.cl\} : \ftpin{/pub/Linux\} (Chile)
  548. \call item
  549. \ftpon{ftp.zel.fer.hr\} : \ftpin{/pub/Linux\} (Croatia)
  550. \call endlist
  551. Not all of these mirror all of the other `source' sites, and some have
  552. material not available on the `source' sites.
  553.  
  554.  
  555. \question 18sep  I don't have FTP access.  Where do I get Linux ?
  556.  
  557. The easiest thing is probably to find a friend with FTP access.  If
  558. there is a Linux users group near you they may be able to help.
  559.  
  560. If you have a reasonably good email connection you could try the
  561. FTP-by-mail servers at \fn ftpmail@decwrl.dec.com, \fn
  562. ftpmail@doc.ic.ac.uk or \fn ftp-mailer@informatik.tu-muenchen.de.
  563.  
  564. Linux is also available via traditional mail on diskette, CD-ROM and
  565. tape.  The \docref{Installation HOWTO\}, and the file
  566. \ftpsilent{sunsite.unc.edu\}\ftpin /pub/Linux/docs/distributions on
  567. \fn sunsite.unc.edu, contain information on these distributions.
  568.  
  569. You could also try Zane Healy \email healyzh@holonet.net's list of
  570. Linux BBS's, which is posted regularly (1st and 15th of each month) to
  571. \newsgroup comp.os.linux.announce and occasionally to the Fidonet and
  572. RIME UNIX echoes.
  573.  
  574.  
  575. \question 18sep:nousenet  I don't have Usenet access.  Where do I get information ?
  576.  
  577. A digest of \fn comp.os.linux.announce is available at the \fn
  578. majordomo@vger.rugters.edu listserver [\qref multilist], as the list
  579. named\fn linux-announce-digest.  You are strongly advised to subscribe
  580. to this list, as it carries important information and documentation
  581. about Linux.
  582.  
  583. Digests of postings to the old set of \courier{comp.os.linux.*\}
  584. groups are available by subscribing to the bidirectional gateway at
  585. \fn linux-*-request@news-digests.mit.edu, where \courier{*\} is one of
  586. \fn announce, \fn development, \fn help, \fn misc or \fn admin.
  587.  
  588. Please remember to use the \fn -request addresses for your
  589. subscription and unsubscription messages; mail to the other address is
  590. posted to the newsgroup !
  591.  
  592.  
  593. \question 18sep:multilist  What's mailing lists are there ?
  594.  
  595. The Linux developers now mainly use the Majordomo server at \email
  596. majordomo@vger.rutgers.edu.  Send a message with \fn lists in the body
  597. to get a list of the lists there; add a line with \fn help to get the
  598. standard Majordomo help file which has instructions for subscribing
  599. and unsubscribing.
  600.  
  601. Note that most of these lists are used by the developers of Linux to
  602. talk about technical issues and future developments.  These are not
  603. intended for new users' questions.
  604.  
  605. There is a \fn linux-newbie list where `no question is too stupid';
  606. unfortunately it seems that few of the experienced users read that
  607. channel.  It does have very low volume.
  608.  
  609. There is also an old listserver on \fn niksula.hut.fi; most of the
  610. lists on \fn vger were once `channels' on \fn niksula.  The mailing
  611. list software there is weird and flakey, and the list-owner mail is
  612. redirected to \fn /dev/null because the person who used to run the
  613. list doesn't any more.
  614.  
  615. The \fn niksula server will send you its help file if you send an
  616. empty mail message to \fn linux-activists-request@niksula.hut.fi.
  617.  
  618. If you want to unsubscribe from it send a mail message like this
  619. \verbatim
  620.   From: you@domain.org
  621.   To: linux-activists-request@niksula.hut.fi
  622.   Subject: irrelevant
  623.  
  624.   X-Mn-Admin: leave CHANNEL
  625. \endverbatim
  626. to leave a channel called \fn CHANNEL.  Do \italic{not\} put an \fn
  627. X-Mn-Key line in your message - that will cause it to be posted to the
  628. list.
  629.  
  630. Note that you \italic{must\} remember to unsubscribe from \fn niksula
  631. \italic{before\} you change your email address, as due to a design
  632. flaw in the list server it is virtually impossible to get yourself
  633. unsubscribed after such a change.
  634.  
  635. The \fn ANNOUNCE list on \fn niksula is a digest of postings to \fn
  636. comp.os.linux.announce, for the benefit of those without Usenet
  637. access.  However since \fn niksula.hut.fi is slow and overloaded I'd
  638. recommend subscribing to the MIT digestifier instead [\qref nousenet].
  639.  
  640.  
  641. \question 09sep:newsarchives  Are the newsgroups archived anywhere ?
  642.  
  643. \ftpon sunsite.unc.edu contains archives of \newsgroup
  644. comp.os.linux.announce, in \ftpin
  645. /pub/Linux/docs/linux-announce.archive.  These are mirrored from
  646. \ftpsilent{src.doc.ic.ac.uk\}\ftpin /usenet on \fn src.doc.ic.ac.uk.
  647.  
  648. There is an `easy to access' archive of \fn comp.os.linux.announce on
  649. the World Wide Web at
  650. \docref{\fn http://www.leo.org/archiv/linux/archiv/ann_index.html\}.  It
  651. supports searching and browsing.
  652.  
  653. I do not know of any (current) archives of the other groups in the \fn
  654. comp.os.linux hierarchy.
  655.  
  656.  
  657. \comment #######################################################################
  658.  
  659. \section  Compatibility with other operating systems
  660.  
  661. \question 27jun:coexist  Can Linux share my disk with DOS ?  OS/2 ?  386BSD ?  Minix ?
  662.  
  663. Yes.  Linux uses the standard PC partitioning scheme, so it can share
  664. your disk with other operating systems.  Note, however, that many of
  665. these other operating systems are rather cranky: DOS FDISK and FORMAT
  666. can sometimes overwrite data in a Linux partition because they
  667. sometimes incorrectly use partition data from the partition's boot
  668. sector rather than the partition table.
  669.  
  670. Linux can read and write the files on your DOS and OS/2 FAT partitions
  671. and floppies using either the DOS filesystem type built into the
  672. kernel or mtools.
  673.  
  674. See \qref supportedsoftware for details and status of the emulators
  675. for DOS, MS Windows and System V programs.
  676.  
  677. See also \qref otherfsys.
  678.  
  679.  
  680. \question 18sep:msdosfs  How do I access files on my DOS partition or floppy ?
  681.  
  682. Use the DOS filesystem, i.e. type, for example:
  683. \verbatim
  684.         mkdir /dos
  685.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  686. \endverbatim
  687. If it's a floppy, don't forget to \fn umount it before ejecting it !
  688.  
  689. You can use the \fn conv=text/binary/auto, \fn umask=nnn, \fn uid=nnn
  690. and \fn gid=nnn options to control the automatic line-ending
  691. conversion, permissions and ownerships of the files in the DOS
  692. filesystem as they appear under Linux.  If you mount your DOS
  693. filesystem by putting it in your \fn /etc/fstab you can record the
  694. options (comma-separated) there, instead of \fn defaults.
  695.  
  696. Alternatively you can use `mtools', available in both binary and
  697. source form on the FTP sites -- see \qref ftpsites.
  698.  
  699. A kernel patch (known as the fd-patches) is available which allows
  700. floppies with nonstandard numbers of tracks and/or sectors to be used;
  701. this patch is included in the 1.1 alpha testing kernel series.
  702.  
  703.  
  704. \question 18sep  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  705.  
  706. Not very easily.  You can access them from within the DOS emulator
  707. [\qref supportedsoftware], but it's harder to do as a normal
  708. filesystem under Linux or using mtools.  There is a module available
  709. for the Linux kernel which can do read-only access of the compressed
  710. volume.  Look on \ftpon sunsite.unc.edu in \ftpin
  711. /pub/Linux/system/Filesystems, for the \fn ths package.
  712.  
  713.  
  714. \question 09sep  Can I access OS/2 HPFS partitions from Linux ?
  715.  
  716. Yes, but it's only read-only at the moment.  To use it you must
  717. compile a kernel with support for it enabled [\qref kernelcompile].
  718. Then you can mount it using the \fn mount command, for example:
  719. \verbatim
  720.         mkdir /hpfs
  721.         mount -t hpfs /dev/hda5 /hpfs
  722. \endverbatim
  723.  
  724.  
  725. \question 09sep:otherfsys  Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  726.  
  727. I'm told that there is a primitive, alpha test read-only Amiga
  728. filesystem on \ftpon sunsite.unc.edu in \ftpin
  729. /pub/Linux/patches/amigaffs.tar.Z.  More information is in \fn
  730. affs-readme in the tarfile.
  731.  
  732. The 1.1.x alpha test kernel series contains support for the UFS
  733. filesystem used by System V and Coherent.
  734.  
  735. There is a set of user-level programs that provides read-only access
  736. to the Macintosh hierarchical filing system (HFS). It is available on
  737. \ftpon sunsite.unc.edu in \ftpin
  738. /pub/Linux/utils/disk-management/hfs0_36.tgz.  This is being turned
  739. into a kernel module, which is available on \fn sunsite.
  740.  
  741. There is no support for the rest of those yet; I have not heard of any
  742. recent work on providing some.
  743.  
  744.  
  745. \question 09sep:wine  Can I run Microsoft Windows programs under Linux ?
  746.  
  747. Not yet.  There is a project, known as WINE, to build an MS Windows
  748. emulator for Linux, but it is not ready for users yet.  Don't ask
  749. about it unless you think you can contribute; look out for the status
  750. reports in \newsgroup comp.emulators.ms-windows.wine.
  751.  
  752. In the meantime if you need to run MS Windows programs your best bet
  753. is probably to reboot when you want to switch environments.  LILO (the
  754. Linux bootloader) has the facility for a boot menu --- see its
  755. documentation for more details.
  756.  
  757.  
  758. \question 18sep:os2boot  How can I boot Linux from OS/2's Boot Manager ?
  759.  
  760. 1. Create a partition using OS/2's \fn FDISK (Not Linux's \fn fdisk).
  761.  
  762. 2. Format the partition under OS/2, either with FAT or HPFS.  This is
  763. so that OS/2 knows about the partition being formatted.  (This step is
  764. not necessary with OS/2 "warp" 3.0.)
  765.  
  766. 3. Add the partition to the Boot Manager.
  767.  
  768. 4. Boot Linux, and create a filesystem on the partition using
  769. \courier{mkfs -t ext2\} or \fn mke2fs.  At this point you may, if you
  770. like, use Linux's \fn fdisk to change the partition type code of the
  771. new partition to type 83 (Linux Native) -- this may help some
  772. automated installation scripts find the right partition to use.
  773.  
  774. 5. Install Linux on the partition.
  775.  
  776. 6. Install LILO on the Linux partition -- NOT on the master boot
  777. record of the hard drive.  This installs LILO as a second-stage boot
  778. loader on the Linux partition itself, to start up the kernel specified
  779. in the LILO config file.  To do this you should put
  780. \verbatim
  781.    boot = /dev/hda2
  782. \endverbatim
  783. (where \fn /dev/hda2 is the \italic{partition\} you want to boot off)
  784. in your \fn /etc/lilo/config or \fn /etc/lilo.config file.
  785.  
  786. 7. Make sure that it is the Boot Manager partition that is marked
  787. active, so that you can use Boot Manager to choose what to boot.
  788.  
  789.  
  790. \question 09sep  How can I share a swap partition between Linux and MS Windows ?
  791.  
  792. See the Mini-HOWTO on the subject by H. Peter Anvin, \email
  793. hpa@eecs.nwu.edu.  It is available on \ftpon sunsite.unc.edu in \ftpin
  794. /pub/Linux/docs.
  795.  
  796.  
  797. \comment ######################################################################
  798.  
  799. \section  Linux's handling of filesystems, disks and drives
  800.  
  801.  
  802. \question 08may:largedisk  How can I get Linux to work with my large disk ?
  803.  
  804. If your disk is an IDE or EIDE drive you should read the
  805. \docref{Large-IDE mini-HOWTO\}.  Some controllers do translation
  806. between `physical' cylinders/heads/sectors and `logical' ones.
  807.  
  808. SCSI disks are accessed by linear block numbers; the BIOS invents some
  809. `logical' cylinders/heads/sectors fiction to support DOS.
  810.  
  811. DOS will usually not be able to access partitions which extend beyond
  812. 1024 logical cylinders, and will make booting a Linux kernel from such
  813. partitions using LILO problematic at best.
  814.  
  815. You can still use such partitions for Linux or other operating systems
  816. that access the controller directly.
  817.  
  818. I'd recommend creating at least one Linux partition entirely under the
  819. 1024-logical-cylinder limit and booting off that; the other
  820. partitions will then be OK.
  821.  
  822.  
  823. \question 09sep  How can I undelete files ?
  824.  
  825. In general, this is very hard to do on Unices because of their
  826. multitasking nature.  Undelete functionality for the ext2fs is being
  827. worked on, but don't hold your breath.
  828.  
  829. There are a number of packages available that work by providing new
  830. commands for deletion and sometimes copying that move deleted files
  831. into a `wastebasket' directory instead; they can then be recovered
  832. until cleaned out automatically by background processing.
  833.  
  834. Alternatively you can search the raw disk device which holds the
  835. filesystem in question.  This is hard work, and you will need to be
  836. root to do this.
  837.  
  838.  
  839. \question 17jun  Is there a defragmenter for ext2fs etc. ?
  840.  
  841. Yes.  There is a Linux filesystem defragmenter for minix, old-style,
  842. ext2, and xia filesystems available on \fn sunsite.unc.edu in
  843. \ftpsilent{sunsite.unc.edu:/pub/Linux\}\ftpin
  844. system/Filesystems/defrag-0.6.tar.gz.
  845.  
  846. Users of the ext2 filesystem can probably do without defrag since ext2
  847. contains extra code to keep fragmentation reduced even in very full
  848. filesystems.
  849.  
  850.  
  851. \question 18sep  How do I format and create a filesystem on a floppy ?
  852.  
  853. For a 3.5 inch high density floppy:
  854. \verbatim
  855.    fdformat /dev/fd0H1440
  856.    mkfs -t ext2 -m 0 /dev/fd0H1440 1440
  857. \endverbatim
  858. For a 5.25 inch floppy use \fn fd0h1200 and \fn 1200 as appropriate.
  859. For the `B' drive use \fn fd1 instead of \fn fd0.  Full details of
  860. which floppy devices do what can be found in the Linux Device List
  861. [\qref howtos].  You may have to run \fn mke2fs directly instead of
  862. \courier{mkfs -t ext2\}.  The \courier{-m 0\} option tells \fn
  863. mkfs.ext2 not to reserve any space on the disk for the superuser ---
  864. usually the last 10% is reserved for root.
  865.  
  866. The first command low-level formats the floppy; the second creates an
  867. empty filesystem on it.  After doing this you can mount the floppy
  868. like a hard disk partition and simply \fn cp and \fn mv files, etc.
  869.  
  870.  
  871. \question 18sep  I get nasty messages about inodes, blocks, and the suchlike
  872.  
  873. You probably have a corrupted filesystem, probably caused by not
  874. shutting Linux down properly before turning off the power or
  875. resetting.  You need to use a recent \fn shutdown program to do this
  876. --- for example, the one included in the util-linux package, available
  877. on \fn sunsite and \fn tsx-11.
  878.  
  879. If you're lucky the program \fn fsck (or \fn e2fsck or \fn xfsck as
  880. appropriate if you don't have the automatic \fn fsck front-end) will
  881. be able to repair your filesystem; if you're unlucky the filesystem is
  882. trashed and you'll have to reinitialise it with \fn mkfs (or \fn
  883. mke2fs, \fn mkxfs etc.) it and restore from a backup.
  884.  
  885. NB don't try to check a filesystem that's mounted read-write - this
  886. includes the root partition if you don't see
  887. \verbatim
  888.    VFS: mounted root ... read-only
  889. \endverbatim
  890. at boot time.
  891.  
  892.  
  893. \question 20aug:swapnotworking  My swap area isn't working.
  894.  
  895. When you boot (or enable swapping manually) you should see
  896. \verbatim
  897.         Adding Swap: NNNNk swap-space
  898. \endverbatim
  899.  
  900. If you don't see any messages at all you are probably missing
  901. \courier{swapon -av\} (the command to enable swapping) in your \fn
  902. /etc/rc.local or \courier{/etc/rc.d/*\} (the system startup scripts),
  903. or have forgotten to make the right entry in \fn /etc/fstab:
  904. \verbatim
  905.         /dev/hda2       none       swap       sw
  906. \endverbatim
  907. for example.
  908.  
  909. If you see
  910. \verbatim
  911.         Unable to find swap-space signature
  912. \endverbatim
  913. you have forgotten to run \fn mkswap.  See the manpage for details; it
  914. works much like \fn mkfs.
  915.  
  916. Check the \docref{Installation HOWTO\} for detailed instructions of
  917. how to set up a swap area.
  918.  
  919.  
  920. \question 18sep  How do I remove LILO so my system boots DOS again ?
  921.  
  922. Using DOS (MS-DOS 5.0 or later, or OS/2), type \courier{FDISK /MBR\}
  923. (which is not documented).  This will restore a standard MS-DOS Master
  924. Boot Record.  If you have DR-DOS 6.0, go into \fn FDISK in the normal
  925. way and then select the `Re-write Master Boot Record' option.
  926.  
  927. If you don't have DOS 5 or DR-DOS you need to have the boot sector
  928. that LILO saved when you first installed it.  You did keep that file,
  929. didn't you ?  It's probably called \fn boot.0301 or some such.  Type
  930. \verbatim
  931.    dd if=boot.0301 of=/dev/hda bs=445 count=1
  932. \endverbatim
  933. (or \fn sda if you're using a SCSI disk).  This may also wipe out
  934. your partition table, so beware !  If you're desperate, you could use
  935. \verbatim
  936.    dd if=/dev/zero of=/dev/hda bs=512 count=1
  937. \endverbatim
  938. which will erase your partition table and boot sector completely: you
  939. can then reformat the disk using your favourite software; however this
  940. will render the contents of your disk inaccessible --- you'll lose it
  941. all unless you're an expert.
  942.  
  943. Note that the DOS MBR boots whichever (single!) partition is flagged
  944. as `active'; you may need to use fdisk to set and clear the active
  945. flags on partitions appropriately.
  946.  
  947.  
  948. \question 26jun  Why can't I use \fn fdformat except as root ?
  949.  
  950. The system call to format a floppy may only be done as root,
  951. regardless of the permissions of \courier{/dev/fd0*\}.  If you want
  952. any user to be able to format a floppy try getting the \fn fdformat2
  953. program; this works around the problems by being setuid to root.
  954.  
  955.  
  956. \question 09sep  Is there something like Stacker or Doublespace for Linux ?
  957.  
  958. Currently none of the Linux filesystems can do compression in the
  959. filesystem.
  960.  
  961. There is a transparently uncompressing C library, which is a drop-in
  962. replacement for the standard C library.  It allows programs to read
  963. compressed (ie, GNU zipped) files as if they were not compressed.  You
  964. install it, and then you can compress files using \fn gzip and have
  965. programs still find them.  Look on \ftpon sunsite.unc.edu in \ftpin
  966. /pub/Linux/libs.  The author is Alain Knaff \email
  967. Alain.Knaff@imag.fr.
  968.  
  969. There is a compressing block device driver that can provide
  970. filesystem-independant on the fly disk compression in the kernel.  It
  971. is called `DouBle'.  There is a source only distribution on \ftpon
  972. sunsite.unc.edu in \ftpin /pub/Linux/kernel/patches/diskdrives; the
  973. author is Jean-Marc Verbavatz \email jmv@receptor.mgh.harvard.edu.
  974. Note that since this compresses inodes (administrative information)
  975. and directories as well as file contents any corruption is quite
  976. likely to be serious.
  977.  
  978. There is also a package available called \fn tcx (Transparently
  979. Compressed Executables) which allows you to keep infrequently used
  980. executables compressed and only uncompress them temporarily while you
  981. use them.  You'll find it on the Linux FTP sites [\qref ftpsites]; it
  982. was also announced in \newsgroup comp.os.linux.announce.  Note - this
  983. is not the same as \fn gzexe, which is an inferior implementation of
  984. the same concept.
  985.  
  986.  
  987. \question 09sep  My ext2fs partitions are checked each time I reboot.
  988.  
  989. See \qref uncheckedfs.
  990.  
  991.  
  992. \question 21dec  My root filesystem is read-only !
  993.  
  994. Remount it.  If \fn /etc/fstab is correct you can simply
  995. \courier{mount -n -o remount /\}. If \fn /etc/fstab is wrong you must
  996. give the device name and posibly the type too: e.g. \courier{mount -n
  997. -o remount -t ext2 /dev/hda2 /\}.  To understand why you got into this
  998. state see \qref uncheckedfs.
  999.  
  1000.  
  1001. \question 09sep  I have a huge \fn /proc/kcore !  Can I delete it ?
  1002.  
  1003. None of the files in \fn /proc are really there - they're all
  1004. "pretend" files made up by the kernel, to give you information about
  1005. the system, and don't take up any hard disk space.
  1006.  
  1007. \fn /proc/kcore is like an "alias" for the memory in your computer;
  1008. its size is the same as the amount of RAM you have, and if you ask to
  1009. read it as a file the kernel does memory reads.
  1010.  
  1011.  
  1012. \question 09sep  My AHA1542C doesn't work with Linux.
  1013.  
  1014. The option to allow disks with more than 1024 cylinders is only
  1015. required as a workaround for a DOS misfeature and should be turned
  1016. \italic{off\} under Linux.  For older Linux kernels you need to turn
  1017. off most of the "advanced BIOS" options - all but the one about
  1018. scanning the bus for bootable devices.
  1019.  
  1020.  
  1021. \comment ######################################################################
  1022.  
  1023. \section  Porting, compiling and obtaining programs
  1024.  
  1025. \question 26jun  What is \fn ld.so and where do I get it ?
  1026.  
  1027. \fn ld.so is the dynamic library loader.  Each binary using shared
  1028. libraries used to have about 3K of start-up code to find and load the
  1029. shared libraries.  Now that code has been put in a special shared
  1030. library, \fn /lib/ld.so, where all binaries can look for it, so that
  1031. it wastes less disk space, and can be upgraded more easily.
  1032.  
  1033. It can be obtained from \ftpon tsx-11.mit.edu in \ftpin
  1034. /pub/linux/packages/GCC and mirror sites thereof.  The latest version
  1035. at the time of writing is \fn ld.so.1.7.3.tar.gz.
  1036.  
  1037.  
  1038. \question 09sep  Has anyone ported / compiled / written XXX for Linux ?
  1039.  
  1040. First, look in the Linux Software Map (LSM) --- it's in the
  1041. \ftpsilent{sunsite.unc.edu:/pub/Linux\}\ftpin docs directory on \fn
  1042. sunsite.unc.edu, and on the other FTP sites.  A search engine is
  1043. available on the WWW at \docref{\fn http://siva.cshl.org/lsm/lsm.html\}.
  1044.  
  1045. Check the FTP sites (see \qref ftpsites) first --- search the \fn
  1046. find-ls or \fn INDEX files for appropriate strings.  Check the Linux
  1047. Projects Map (LPM), on \ftpon ftp.ix.de in \ftpin
  1048. /pub/Linux/docs/Projects-Map.gz.
  1049.  
  1050. If you don't find anything, you could either download the sources to
  1051. the program yourself and compile them -- see \qref compiling -- or, if
  1052. it's a large package which may require some porting, post a message to
  1053. the newsgroup \newsgroup comp.os.linux.development.apps.
  1054.  
  1055. If you compile a largeish program please upload it to one or more of
  1056. the FTP sites and post a message to \newsgroup comp.os.linux.announce
  1057. (submit your posting to \email linux-announce@news.ornl.gov.edu).
  1058.  
  1059. If you're looking for an application-type program the chances are
  1060. someone has already written a free verson.  Try reading the FAQ in
  1061. \newsgroup comp.sources.wanted for instructions on how to find
  1062. sources.
  1063.  
  1064. You should also check the Projects-FAQ, available in
  1065. \ftpsilent{sunsite.unc.edu\}\ftpin /pub/Linux/docs/faqs/Projects-FAQ
  1066. on \fn sunsite.unc.edu.
  1067.  
  1068.  
  1069. \question 26jun:compiling  How do I port XXX to Linux ?
  1070.  
  1071. In general Unix programs need very little porting.  Simply follow the
  1072. installation instructions.  If you don't know and don't know how to
  1073. find out the answers to some of the questions asked during or by the
  1074. installation procedure you can guess, but this tends to produce buggy
  1075. programs.  In this case you're probably better off asking someone else
  1076. to do the port.
  1077.  
  1078. If you have a BSD-ish program you should try using \fn
  1079. -I/usr/include/bsd and \fn -lbsd on the appropriate parts of the
  1080. compilation lines.
  1081.  
  1082.  
  1083. \question 26jun  Can I use code or a compiler compiled for a 486 on my 386 ?
  1084.  
  1085. Yes.
  1086.  
  1087. The \fn -m486 option to GCC, which is used to compile binaries for 486
  1088. machines, merely changes certain optimisations.  This makes for
  1089. slightly larger binaries which run somewhat faster on a 486.  They
  1090. still work fine on a 386, though, with little performance hit.
  1091.  
  1092. GCC can be configured for a 386 or 486; the only difference is that
  1093. configuring it for a 386 makes \fn -m386 the default and configuring
  1094. for a 486 makes \fn -m486 the default; in either case these can be
  1095. overriden on a per-compilation basis or by editing \fn
  1096. /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  1097.  
  1098. There is an alpha version of GCC that knows how to do optimisation
  1099. well for the 586, but it is quite unreliable, especially at high
  1100. optimisation settings.  I'd recommend using the ordinary 486 GCC
  1101. instead.  The Pentium GCC can be found on \ftpon tsx-11.mit.edu in
  1102. \ftpin /pub/linux/ALPHA/pentium-gcc.
  1103.  
  1104.  
  1105. \question 09sep  What does \courier{gcc -O6\} do ?
  1106.  
  1107. Currently the same as \fn -O2; any number greater than 2 currently
  1108. works just like 2.  The Makefiles of newer kernels use \fn -O2, and so
  1109. should you.
  1110.  
  1111. GCC 2.6 adds optimisation level \fn -O3.  However, GCC 2.6.0 and
  1112. several of the following versions are known to have some problems with
  1113. Linux, though these will hopefully be solved soon.  In any case you
  1114. should not use \fn -O3 on a program until you're sure it doesn't
  1115. create any problems.
  1116.  
  1117.  
  1118. \question 26jun:linuxinclude  Where are \courier{<linux/*.h>\} and \courier{<asm/*.h>\} ?
  1119.  
  1120. These are in the directories \fn /usr/include/linux and
  1121. \fn /usr/include/asm.
  1122.  
  1123. However they should be symbolic links to your kernel sources in \fn
  1124. /usr/src/linux and not real directories.
  1125.  
  1126. If you don't have the kernel sources download them --- see
  1127. \qref kernelcompile.
  1128.  
  1129. Then use \fn rm to remove any garbage, and \fn ln to create the links:
  1130. \verbatim
  1131.    rm -rf /usr/include/linux /usr/include/asm
  1132.    ln -sf /usr/src/linux/include/linux /usr/include/linux
  1133.    ln -sf /usr/src/linux/include/asm /usr/include/asm
  1134. \endverbatim
  1135.  
  1136. Nowadays \fn /usr/src/linux/include/asm is a symbolic link to an
  1137. architecture-specific \courier{asm-<arch>\} directory - if you have a
  1138. freshly unpacked kernel source tree you must use
  1139. \courier{make symlinks\}.
  1140.  
  1141.  
  1142. \question 26jun  I get errors when I try to compile the kernel.
  1143.  
  1144. Make sure that \fn /usr/include/linux and \fn /usr/include/asm aren't actual
  1145. directories but instead symbolic links to \fn /usr/src/linux/include/linux
  1146. and \fn /usr/src/linux/include/asm respectively.
  1147.  
  1148. If necessary, delete them using \fn rm and then use \courier{ln -s\} to make
  1149. the links as in \qref linuxinclude.
  1150.  
  1151. Remember that when you apply a patch to the kernel you must use the
  1152. \fn -p0 or \fn -p1 option: otherwise the patch may be misapplied.  See
  1153. the manpage for \fn patch for details.
  1154.  
  1155. If you're using a kernel more recent than 1.1.44 you should find that
  1156. there are new directories \fn /usr/src/linux/include/asm-i386.  The
  1157. directory \fn asm there should be removed, as should the directory \fn
  1158. asm.  The \fn symlinks \fn Makefile target will make these be symbolic
  1159. links to \fn asm-i36 and \fn arch/i386/boot respectively.  The easiest
  1160. way to make sure all this gets done is not to try to patch 1.1.44 to
  1161. make 1.1.45, but to download \fn linux-1.1.45.tar.gz instead.
  1162.  
  1163. \courier{ld: unrecognised option `-qmagic'\} means you should get a
  1164. newer linker, from \ftpon tsx-11.mit.edu in \ftpin
  1165. /pub/linux/packages/GCC, in the file \fn image-4.6.xx.tar.gz.
  1166.  
  1167.  
  1168. \question 18sep  How do I make a shared library ?
  1169.  
  1170. Get \fn tools-n.nn.tar.gz from \ftpon tsx-11.mit.edu, in \ftpin
  1171. /pub/linux/packages/GCC/src.  It comes with documentation that will
  1172. tell you what to do.
  1173.  
  1174.  
  1175. \question 09sep  How do I make my executables smaller ?
  1176.  
  1177. The most common cause of large executables is the \fn -g compiler
  1178. flag.  This produces (as well as debugging information in the output
  1179. file) a program which is statically linked, i.e. one which includes a
  1180. copy of the C library instead of using a dynamically linked copy.
  1181.  
  1182. Other things that are worth investigating are \fn -O and \fn -O2 which
  1183. enable optimisation (check the GCC documentation) and -s (or the \fn
  1184. strip command) which strip the symbol information from the resulting
  1185. binary (making debugging totally impossible).
  1186.  
  1187. You may wish to use \fn -N on very small executables (less than 8K
  1188. with the \fn -N), but you shouldn't do this unless you understand its
  1189. performance implications, and definitely never with daemons.
  1190.  
  1191.  
  1192. \question 30oct  Does Linux support threads or lightweight processes ?
  1193.  
  1194. As well as the Unix multiprocessing model involving heavyweight
  1195. processes, which is of course part of the standard Linux kernel, there
  1196. are several implementations of lightweight processes or threads, most
  1197. of which are generic packages for any Unix:
  1198.  
  1199. \call startlist
  1200. \call item
  1201. In \ftpon{sipb.mit.edu\}:\ftpin /pub/pthread or
  1202. \ftpon{ftp.ibp.fr\}:\ftpin /pub/unix/threads/pthreads.
  1203. Documentation isn't in the package, but is available on the World Wide
  1204. Web at \docref{\fn http://www.mit.edu:8001/people/proven/home_page.html\}.
  1205. \call item
  1206. In \ftpon{ftp.cs.washington.edu\}:\ftpin /pub/qt-001.tar.Z is
  1207. QuickThreads.  More information can be found in the technical report,
  1208. available on the same site as \ftpin /tr/1993/05/UW-CSE-93-05-06.PS.Z.
  1209. \call item
  1210. In \ftpon{gummo.doc.ic.ac.uk\}:\ftpin /rex is lwp, a very minimal
  1211. implementation.
  1212. \call item
  1213. In \ftpon{ftp.cs.fsu.edu\}:\ftpin /pub/PART, an Ada implementation.
  1214. This is useful mainly because it has a lot of PostScript papers that
  1215. you'll find useful in learning more about threads.  This is not
  1216. directly useable under Linux.
  1217. \call endlist
  1218.  
  1219. Please contact the authors of the packages in question for details.
  1220.  
  1221.  
  1222. \question 31jan  Where can I get `lint' for Linux ?
  1223.  
  1224. Roughly equivalent functionality is built into the GNU C compiler (\fn
  1225. gcc) which is used by Linux systems.  Use the \fn -Wall option to turn
  1226. on most of the useful extra warnings.  Check the GCC manual for more
  1227. details (type control-\fn h followed by \fn i in Emacs and select the
  1228. entry for GCC).
  1229.  
  1230. There is a freely available program called `lclint' that does much the
  1231. same thing as traditional lint.  The announcement and source code are
  1232. available at on \ftpon larch.lcs.mit.edu in \ftpin /pub/Larch/lclint;
  1233. on the World Wide Web look at
  1234. \docref{\fn http://larch-www.lcs.mit.edu:8001/larch/lclint.html\}.
  1235.  
  1236.  
  1237. \question 27mar  Where can I find `kermit' for Linux ?
  1238.  
  1239. Kermit has a restrictive copyright which has forced most distribution
  1240. maintainers to remove it, or to move the package containing it into an
  1241. obscure directory.
  1242.  
  1243. The source code is available on \ftpon kermit.columbia.edu in \ftpin
  1244. /kermit/archives/cku190.tar.gz; Linux binaries are available in \ftpin
  1245. /kermit/bin/ckuker.linux and \ftpin /kermit/bin/ckuker.linuxtcp.
  1246.  
  1247.  
  1248. \copyto POST
  1249. ===============================================================================
  1250.  
  1251. The remainder of the FAQ is in the next part ...
  1252.  
  1253. END-OF-PORTION
  1254. cat <<'END-OF-HEADER' >linux-faq.post-part2
  1255. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  1256. Newsgroups: comp.os.linux.answers,comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  1257. Subject: Linux Frequently Asked Questions with Answers (FAQ: 2/2)
  1258. Keywords: FAQ, Linux, part2
  1259. Summary: Please read the whole FAQ before posting to comp.os.linux.help.
  1260. Followup-To: poster
  1261. Approved: *.answers moderation team <news-answers-request@mit.edu>,
  1262.           Matt Welsh <linux-answers-request@news.ornl.gov>
  1263. `./expirydate2`
  1264.  
  1265. Archive-Name: linux/faq/part2
  1266. Last-Modified: `date '+%d %b %Y'`
  1267.  
  1268. END-OF-HEADER
  1269. pgp-auto +batchmode +force -fast <<'END-OF-PORTION' >>linux-faq.post-part2
  1270. (Continued from part 1, where you'll find the introduction and
  1271.  table of contents.)
  1272. \endcopy
  1273.  
  1274. \comment ######################################################################
  1275.  
  1276. \section  Solutions to common miscellaneous problems
  1277.  
  1278.  
  1279. \question 26jun  Setuid scripts don't seem to work.
  1280.  
  1281. That's right.  This feature has been deliberately disabled in the
  1282. Linux kernel because setuid scripts are almost always a security hole.
  1283. If you want to know why read the FAQ for \newsgroup
  1284. comp.unix.questions.
  1285.  
  1286.  
  1287. \question 29jun  Free memory as reported by \fn free keeps shrinking.
  1288.  
  1289. The `free' figure printed by \fn free doesn't include memory used as a
  1290. disk buffer cache - shown in the `buffers' column.  If you want to
  1291. know how much memory is really free add the `buffers' amount to `free'
  1292. - newer versions of \fn free print an extra line with this info.
  1293.  
  1294. The disk buffer cache tends to grow soon after starting Linux up, as
  1295. you load more programs and use more files and the contents get cached.
  1296. It will stabilise after a while.
  1297.  
  1298.  
  1299. \question 26jun:nocache  When I add more memory it slows to a crawl.
  1300.  
  1301. This is quite a common symptom of a failure to cache the additional
  1302. memory.  The exact problem depends on your motherboard.
  1303.  
  1304. Sometimes you have to enable caching of certain regions in your BIOS
  1305. setup.  Look in the CMOS setup and see if there is an option to cache
  1306. the new memory area which is currently switched off.  This is
  1307. apparently most common on a 486.
  1308.  
  1309. Sometimes the RAMs have to be in certain sockets to be cached.
  1310.  
  1311. Sometimes you have to set jumpers to enable the caching.
  1312.  
  1313. Some motherboards don't cache all the RAM if you have more RAM per
  1314. amount of cache than they expect.  Usually a full 256K cache will
  1315. solve this problem.
  1316.  
  1317. If in doubt, check your motherboard manual.  If you still can't fix it
  1318. because the documentation is inadequate you might like to post a
  1319. message to \newsgroup comp.os.linux.hardware giving \italic{all\} the
  1320. details - make, model number, date code, etc. so that other Linux
  1321. users can avoid it.
  1322.  
  1323.  
  1324. \question 26jun:shadowpassword  Some programs (e.g. \fn xdm) won't let me log in.
  1325.  
  1326. You are probably using non-shadow-password programs but are using
  1327. shadow passwords.
  1328.  
  1329. If so, you have to get or compile a shadow password version of the
  1330. program(s) in question.  The shadow password suite can be found in
  1331. (amongst other places):
  1332. \verbatim
  1333.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  1334. \endverbatim
  1335. This is the source code; you will probably find the binaries in \fn
  1336. .../linux/binaries/usr.bin.
  1337.  
  1338.  
  1339. \question 26jun  Some programs let me log in with no password.
  1340.  
  1341. You probably have the same problem as in \qref shadowpassword, with an
  1342. added wrinkle:
  1343.  
  1344. If you are using shadow passords you should put an asterisk in the
  1345. password field of \fn /etc/passwd for each account, so that if a
  1346. program doesn't know about the shadow passwords it won't think it's a
  1347. passwordless account and let anyone in.
  1348.  
  1349.  
  1350. \question 26jun:lackofmemory  My machine runs very slowly when I run GCC / X / ...
  1351.  
  1352. You may not have any swap enabled.  You need to enable swapping to
  1353. allow Linux to page out bits of data programs aren't using at the
  1354. moment to disk to make more room for other programs and data.  If you
  1355. don't Linux has to keep data in memory and throw away in-memory copies
  1356. of programs (which are paged straight from the filesystem) and so less
  1357. and less program is in memory and everything runs very slowly.
  1358.  
  1359. See the \docref{Installation HOWTO\} and the
  1360. \docref{Installation and Getting Started Guide\}
  1361. [\qref howtos] for details of how to set up a
  1362. swap partition or swapfile; see also \qref swapnotworking.
  1363.  
  1364. Alternatively you may have too little real memory.  If you have less
  1365. RAM than all the programs you're running at once use Linux will use
  1366. your hard disk instead and thrash horribly.  The solution in this case
  1367. is to not run so many things at once or to buy more memory.  You can
  1368. also reclaim some memory by compiling and using a kernel with less
  1369. options configured.  See \qref kernelcompile.
  1370.  
  1371. You can tell how much memory and/or swap you're using by using the \fn
  1372. free command, or by typing
  1373. \verbatim
  1374.     cat /proc/meminfo
  1375. \endverbatim
  1376.  
  1377. If your kernel is configured with a ramdisk this is probably wasted
  1378. space and will cause things to go slowly.  Use LILO or \fn rdev to
  1379. tell the kernel not to allocate a ramdisk (see the LILO documentation
  1380. or type \courier{man rdev\}).
  1381.  
  1382.  
  1383. \question 26jun  I can only log in as root.
  1384.  
  1385. You probably have some permission problems, or you have a file \fn
  1386. /etc/nologin.
  1387.  
  1388. If the latter put \courier{rm -f /etc/nologin\} in your \fn
  1389. /etc/rc.local or \courier{/etc/rc.d/*\} scripts.
  1390.  
  1391. Otherwise check the permissions on your shell, and any filenames which
  1392. appear in error messages, and also the directories containing these
  1393. files all the way up the tree, up to and including the root directory.
  1394.  
  1395.  
  1396. \question 09sep  My screen is all full of weird characters instead of letters.
  1397.  
  1398. You probably sent some binary data to your screen by mistake.  Type
  1399. \courier{echo ^V^[c\} (that's \fn e \fn c \fn h \fn o space
  1400. control-\fn V escape \fn c return) to fix it.  Many Linux
  1401. distributions have a command \fn reset that does this.
  1402.  
  1403.  
  1404. \question 17jun:screwedup  I have screwed up my system and can't log in to fix it.
  1405.  
  1406. Reboot from an emergency floppy or floppy pair, for example the
  1407. Slackware boot- and root-disk pair (in the \fn install subdirectory of
  1408. the Slackware mirrors) or the MCC installation boot floppy.  There are
  1409. also two diy rescue disk creation packages on \ftpon sunsite.unc.edu
  1410. in \ftpin /pub/Linux/system/Recovery.  These are better as they'll
  1411. have your own kernel on them, so that you don't run the risk of
  1412. missing devices, filesystems, etc.
  1413.  
  1414. Get to a shell prompt and mount your hard
  1415. disk with something like
  1416. \verbatim
  1417.    mount -t ext2 /dev/hda1 /mnt
  1418. \endverbatim
  1419.  
  1420. Then your filesystem is available under the directory \fn /mnt and you
  1421. can fix the problem.  Remember to unmount your hard disk before
  1422. rebooting (\fn cd back down to \courier{/\} first or it will say it's
  1423. busy).
  1424.  
  1425.  
  1426. \question 26jun  Emacs just dumps core.
  1427.  
  1428. You probably have the X version of Emacs that comes with SLS.  It
  1429. doesn't work without the X libraries.  The solution is to install X
  1430. Windows or get a newer Emacs binary without any X Windows support.
  1431.  
  1432.  
  1433. \question 09sep  I've discovered a huge security hole in \fn rm !
  1434.  
  1435. No you haven't.  You are obviously new to Unix and need to read a good
  1436. book on it to find out how things work.  Clue: ability to delete files
  1437. under Unix depends on permission to write the directory they are in.
  1438.  
  1439.  
  1440. \question 17jun  \fn lpr and/or \fn lpd aren't working.
  1441.  
  1442. Check the \docref{Printing HOWTO\} [\qref howtos].
  1443.  
  1444.  
  1445. \question 31jan  Timestamps on files on msdos partitions are set incorrectly.
  1446.  
  1447. There is a bug in the program \fn clock (often found in \fn /sbin) -
  1448. it miscounts a timezone offset, confusing seconds with minutes or some
  1449. such.  Get a new version of it.
  1450.  
  1451.  
  1452. \question 27mar  How do I get LILO to boot the \fn vmlinux file ?
  1453.  
  1454. In kernel versions 1.1.80 and later the compressed kernel image, which
  1455. is what you have to give to LILO, has been moved to \fn
  1456. arch/i386/boot/zImage.  The \fn vmlinux file in the root directory is
  1457. the uncompressed kernel, and you shouldn't try to boot it.
  1458.  
  1459. This change has been made to make it easier to build the versions for
  1460. several different processors from the same source tree.
  1461.  
  1462.  
  1463. \comment ######################################################################
  1464.  
  1465. \section  How do I do this or find out that ... ?
  1466.  
  1467.  
  1468. \question 09sep  How can I get scrollback in text mode ?
  1469.  
  1470. With the default US keymap you can use Shift with the PageUp and
  1471. PageDown keys (NB these must be the grey ones, not the ones on the
  1472. numeric keypad !).  With other keymaps check the maps in \fn
  1473. /usr/lib/keytables; you can remap the scroll up and down keys to be
  1474. whatever you like --- for example, in order to remap them to keys that
  1475. exist on an 84-key AT keyboard.
  1476.  
  1477. You can't increase the amount of scrollback, because of the way it is
  1478. implemented using the video memory to store the scrollback text,
  1479. though you may be able to get more scrollback in each virtual console
  1480. by reducing the total number of VC's --- see \courier{<linux/tty.h>\}.
  1481.  
  1482.  
  1483. \question 13jul  How do I switch virtual consoles ?  How do I enable them ?
  1484.  
  1485. In text mode, press Left Alt-F1 to Alt-F12 to select the consoles \fn
  1486. tty1 to \fn tty12; Right Alt-F1 gives \fn tty13 and so on.  To switch
  1487. out of X windows you must press Ctrl-Alt-F1 etc; Alt-F5 or whatever
  1488. will switch back.
  1489.  
  1490. If you want to use a VC for ordinary login you need to list it in \fn
  1491. /etc/inittab, which controls which terminals and virtual consoles have
  1492. login prompts.  NB: X needs at least one free VC in order to start.
  1493.  
  1494. Kernels earlier than around 1.1.70 have a compiled-in limit on the
  1495. number of consoles, for which the default is 8.  See \fn NR_CONSOLES
  1496. in \fn linux/include/linux/tty.h.
  1497.  
  1498.  
  1499. \question 26jun  How do I set the timezone ?
  1500.  
  1501. Change directory to \fn /usr/lib/zoneinfo; get the timezone package if
  1502. you don't have this directory.  The source can be found on \ftpon
  1503. sunsite.unc.edu in \ftpin /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  1504.  
  1505. Then make a symbolic link named \fn localtime pointing to one of the
  1506. files in this directory (or a subdirectory), and one called \fn
  1507. posixrules pointing to \fn localtime.  For example:
  1508. \verbatim
  1509.    ln -sf US/Mountain localtime
  1510.    ln -sf localtime posixrules
  1511. \endverbatim
  1512. This change will take effect immediately - try \fn date.
  1513.  
  1514. Don't try to use the \fn TZ variable - leave it unset.
  1515.  
  1516. You should also make sure that your Linux kernel clock is set to the
  1517. correct GMT time - type \courier{date -u\} and check that the correct
  1518. universal time is displayed.
  1519.  
  1520.  
  1521. \question 26jun  What version of Linux and what machine name am I using ?
  1522.  
  1523. Type:
  1524. \verbatim
  1525.    uname -a
  1526. \endverbatim
  1527.  
  1528.  
  1529. \question 09sep  How can I enable or disable \fn core dumps ?
  1530.  
  1531. Since 0.99pl14 Linux has had corefiles turned off by default for all
  1532. processes.
  1533.  
  1534. You can turn them on or off by using the \fn ulimit command in \fn
  1535. bash, the \fn limit command in \fn tcsh, or the \fn rlimit command in
  1536. \fn ksh.  See the manpage for the shell for more details.
  1537.  
  1538. That command affects all programs run from that shell (directly or
  1539. indirectly), not the whole system.
  1540.  
  1541. If you wish to enable or disable coredumping for all processes by
  1542. default you can change the default setting in
  1543. \courier{<linux/sched.h>\} - see the definition of \fn INIT_TASK, and
  1544. look also in \courier{<linux/resource.h>\}.
  1545.  
  1546.  
  1547. \question 09sep:kernelcompile  How do I upgrade/recompile my kernel ?
  1548.  
  1549. See the \fn README which comes with the kernel release on \ftpon
  1550. ftp.funet.fi, in \ftpin /pub/OS/Linux/PEOPLE/Linus and mirrors
  1551. thereof.  Try to get it from a closer site if possible; \fn
  1552. ftp.funet.fi is a very busy site and therefore slow -- see \qref
  1553. ftpsites.  You may already have a version of the kernel source code
  1554. installed on your system, but if you got it as part of a standard
  1555. distribution it is likely to be somewhat out of date (this is not a
  1556. problem if you only want a custom-configured kernel, but it probably
  1557. is if you need to upgrade.)
  1558.  
  1559. Remember that to make the new kernel boot you must run LILO after
  1560. copying the kernel into your root partition -- the \fn Makefile in
  1561. recent kernels has a special \fn zlilo target for this; try
  1562. \courier{make zlilo\}.
  1563.  
  1564. Russel Nelson posts summaries of what changes in recent kernel patches
  1565. to \newsgroup comp.os.linux.development, and these are archived on
  1566. \ftpon ftp.emlist.com in \ftpin /pub/kchanges.
  1567.  
  1568.  
  1569. \question 26jun  Can I have more than 3 serial ports by sharing interrupts ?
  1570.  
  1571. Yes, but you won't be able to use simultaneously two ordinary ports
  1572. which share an interrupt (without some trickery).  This is a
  1573. limitation of the ISA bus architecture.
  1574.  
  1575. See the \docref{Serial HOWTO\} for information about possible
  1576. solutions to and workarounds for this problem.
  1577.  
  1578.  
  1579. \question 26jun  How do I make a bootable floppy ?
  1580.  
  1581. Make a filesystem on it with \fn bin, \fn etc and \fn lib directories
  1582. -- everything you need.  Install a kernel on it and arrange to have
  1583. LILO boot it from the floppy (see the LILO documentation, in \fn
  1584. lilo.u.*.ps).
  1585.  
  1586. If you build the kernel (or tell LILO to tell the kernel) to have a
  1587. ramdisk the same size as the floppy the ramdisk will be loaded at
  1588. boot-time and mounted as root in place of the floppy.
  1589.  
  1590.  
  1591. \question 26jun:kbd  How do I remap my keyboard to UK, French, etc. ?
  1592.  
  1593. For recent kernels, get
  1594. \ftpsilent{sunsite.unc.edu\}\ftpin /pub/Linux/system/Keyboards/kbd-0.90.tar.gz
  1595. from \fn sunsite.unc.edu.  Make sure you get the appropriate version; you
  1596. have to use the right keyboard-mapping package to go with your kernel
  1597. version.  \fn 0.90 should work with kernel versions from 1.0.
  1598.  
  1599. For older kernels you have to edit the top-level kernel \fn Makefile,
  1600. in \fn /usr/src/linux.
  1601.  
  1602. You may find more helpful information in the \docref{Keystroke
  1603. HOWTO\}, on \fn sunsite.unc.edu in \fn
  1604. /pub/Linux/docs/HOWTO/Keystroke-HOWTO.
  1605.  
  1606.  
  1607. \question 26jun  How do I get NUM LOCK to default to on ?
  1608.  
  1609. Use the \fn setleds program, for example (in \fn /etc/rc.local or one
  1610. of the \courier{/etc/rc.d/*\} files):
  1611. \verbatim
  1612.    for t in 1 2 3 4 5 6 7 8
  1613.    do
  1614.         setleds +num < /dev/tty$t > /dev/null
  1615.    done
  1616. \endverbatim
  1617.  
  1618. \fn setleds is part of the kbd package (see \qref kbd).
  1619.  
  1620. Alternatively, patch your kernel.  You need to arrange for \fn
  1621. KBD_DEFLEDS to be defined to \courier{(1 << VC_NUMLOCK)\} when
  1622. compiling \fn drivers/char/keyboard.c.
  1623.  
  1624.  
  1625. \question 21dec  How can I have more than 128Mb of swap ?
  1626.  
  1627. Use several swap partitions or swapfiles - Linux supports up to 16
  1628. swap areas, each of up to 128Mb.
  1629.  
  1630. Very old kernels only supported swap area sizes up to 16Mb.
  1631.  
  1632.  
  1633. \comment ######################################################################
  1634.  
  1635. \section  Miscellaneous information and questions answered
  1636.  
  1637.  
  1638. \question 28may  What's all this about ELF ?
  1639.  
  1640. Linux is switching to a different format for executables, object files
  1641. and object code libraries, known as `ELF' (the old format is called
  1642. `a.out').  This will have many advantages, including better support
  1643. for shared libraries and dynamic linking.
  1644.  
  1645. Both a.out and ELF binaries can coexist on a system.  However, they
  1646. use different shared C libraries, both of which will have to be
  1647. installed to do this.
  1648.  
  1649. See the library and compiler release notes for installation
  1650. instructions.  A general introduction is at
  1651. \docref{\fn http://sable.ox.ac.uk/~jo95004/elf.html\}, with
  1652. compatibility patches for various programs and instructions
  1653. for converting your system; an alternative set of conversion
  1654. instructions is at
  1655. \docref{\fn http://www.intac.com/~cully/elf.html\}.  For
  1656. the programmer, try HJ Lu's paper, on \ftpon sunsite.unc.edu
  1657. in \ftpin /pub/Linux/GCC/elf.ps.gz.
  1658.  
  1659.  
  1660. \question 26jun  What is a \fn .gz file ? And a \fn .tgz ? And ... ?
  1661.  
  1662. \fn .gz (and \fn .z) files have been compressed using GNU \fn gzip.
  1663. You need to use \fn gunzip (which is as a symlink to the \fn gzip
  1664. command which comes with most Linux installations) to unpack the file.
  1665.  
  1666. \fn .taz and \fn .tz are tarfiles (made with Unix \fn tar) compressed
  1667. using standard Unix \fn compress.
  1668.  
  1669. \fn .tgz (or \fn .tpz) is a tarfile compressed with \fn gzip.
  1670.  
  1671. \fn .lsm is a Linux Software Map entry, in the form of a short text
  1672. file.  Details about the LSM and the LSM itself are available in the
  1673. \ftpsilent{sunsite.unc.edu:/pub/Linux\}\ftpin docs subdirectory on \fn
  1674. sunsite.unc.edu.
  1675.  
  1676. The \fn file command can often tell you what a file is.
  1677.  
  1678. If you find that \fn gzip complains when you try to uncompress a
  1679. gzipped file you probably downloaded it in ASCII mode by mistake.  You
  1680. must download most things in binary mode - remember to type \fn binary
  1681. as a command in FTP before using \fn get to get the file.
  1682.  
  1683.  
  1684. \question 26jun  What does \fn VFS stand for ?
  1685.  
  1686. Virtual File System.  It's the abstraction layer between the user and
  1687. real filesystems like ext2, minix and msdos.  Amongst other things,
  1688. its job is to flush the read buffer when it detects a disk change on
  1689. the floppy disk drive:
  1690. \verbatim
  1691.    VFS: Disk change detected on device 2/0
  1692. \endverbatim
  1693.  
  1694.  
  1695. \question 09sep  What is a BogoMip ?
  1696.  
  1697. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for
  1698. (depending who you listen to) Millions of Instructions per Second, or
  1699. Meaningless Indication of Processor Speed.
  1700.  
  1701. The number printed at boot-time is the result of a kernel timing
  1702. calibration, used for very short delay loops by some device drivers.
  1703.  
  1704. As a very rough guide the BogoMips will be approximately:
  1705. \verbatim
  1706.      386SX              clock * 0.14
  1707.      386DX              clock * 0.18
  1708.      486Cyrix/IBM       clock * 0.33
  1709.      486SX/DX/DX2       clock * 0.50
  1710.      586                clock * 0.39
  1711. \endverbatim
  1712.  
  1713. If the number you're seeing is wildly lower than this you may have the
  1714. Turbo button or CPU speed set incorrectly, or have some kind of
  1715. caching problem [as described in \qref nocache.]
  1716.  
  1717. For values people have seen with other, rarer, chips, see the BogoMips
  1718. Mini-HOWTO, on \ftpon sunsite.unc.edu in \ftpin
  1719. /pub/Linux/docs/howto/mini/BogoMips.
  1720.  
  1721.  
  1722. \question 18may  What is the Linux Journal and where can I get it ?
  1723.  
  1724. Linux Journal is a monthly magazine (printed on paper) that is
  1725. available on newsstands and via subscription worldwide. Email \email
  1726. linux@ssc.com for details.  They are on the Web at
  1727. \docref{\fn http://www.ssc.com/\}.
  1728.  
  1729.  
  1730. \question 22jun  How many people use Linux ?
  1731.  
  1732. Linux is freely available, and no one is required to register their
  1733. copies with any central authority, so it is difficult to know.
  1734. Several businesses are now surviving solely on selling and supporting
  1735. Linux, and very few Linux users use those businesses, relatively
  1736. speaking.  The Linux newsgroups are some of the most heavily read on
  1737. the Net, so the number is likely in the hundreds of thousands, but
  1738. firm numbers are hard to come by.
  1739.  
  1740. However, one brave soul, Harald T. Alvestrand \email
  1741. Harald.T.Alvestrand@uninett.no, has decided to try, and asks that if
  1742. you use Linux, you send a message to \email linux-counter@uninett.no
  1743. with one of the following subjects: `I use Linux at home', `I use
  1744. Linux at work', or `I use Linux at home and at work'.  He will also
  1745. accept `third-party' registrations - ask him for details.
  1746.  
  1747. He posts his counts to comp.os.linux.misc each month; alternatively
  1748. look on \ftpon aun.uninett.no in \ftpin /pub/misc/linux-counter.
  1749.  
  1750.  
  1751. \question 18sep  How should I pronounce Linux ?
  1752.  
  1753. This is a matter of religious debate, of course !
  1754.  
  1755. If you want to hear the Linus himself say how he pronounces it
  1756. download \ftpsilent
  1757. ftp.funet.fi:/pub/OS/Linux/PEOPLE/Linus/SillySounds \ftpin english.au
  1758. or \ftpin swedish.au from \fn ftp.funet.fi (in \fn
  1759. /pub/OS/Linux/PEOPLE/Linus/SillySounds).  If you have a soundcard or
  1760. the PC-speaker audio driver you can hear them by typing
  1761. \verbatim
  1762.    cat english.au >/dev/audio
  1763. \endverbatim
  1764. The difference isn't in the pronunciation of Linux but in the language
  1765. Linus uses to say hello.  The English version was parodied very well
  1766. by Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce
  1767. Leenooks as Leenooks."
  1768.  
  1769. For the benefit of those of you who don't have the equipment or
  1770. inclination: Linus pronounces Linux approximately as Leenus, where the
  1771. ee is as in feet but rather shorter and the u is like a much shorter
  1772. version of the French eu sound in peur (pronouncing it as the u in put
  1773. is probably passable).
  1774.  
  1775. When speaking English I pronounce it Lie-nucks (u as in bucket) ---
  1776. this is an anglicised pronunciation based on the analogy with Linus'
  1777. name, which in English is usually pronounced Lie-nus (u as in put).
  1778. It is of course quite acceptable and common to modify the
  1779. pronunciation of a proper noun when it changes languages.
  1780.  
  1781. I think I can safely say that the pronunciation Linnucks (short i as
  1782. in pit, short u as in bucket) is wrong in English, as it is not the
  1783. original Swedish pronunciation, not a sensible direct anglicisation of
  1784. it, and not based on the anglicised version of Linus' name.
  1785.  
  1786.  
  1787. \comment ######################################################################
  1788.  
  1789. \section  Frequently encountered error messages
  1790.  
  1791.  
  1792. \question 18sep  During linking I get \courier{Undefined symbol _mcount\}
  1793.  
  1794. This is usually due to a bad interaction between a brokenness in SLS
  1795. and the C library release notes.  Your \fn libc.a has been replaced by
  1796. the profiling library.  You should remove \fn libc.a, \fn libg.a and
  1797. \fn libc_p.a and once again install the new libraries (following the
  1798. release notes, of course).
  1799.  
  1800.  
  1801. \question 09sep  \courier{lp1 on fire\}
  1802.  
  1803. This is a joke/traditional error message indicating that some sort of
  1804. error is being reported by your printer, but that the error status
  1805. isn't a valid one.  It may be that you have some kind of I/O or IRQ
  1806. conflict - check your cards' settings.  Some people report that they
  1807. get this message when their printer is switched off.  Hopefully it
  1808. isn't really on fire ...
  1809.  
  1810. In newer kernels this message reads \courier{lp1 reported invalid
  1811. error status (on fire, eh?)\}.
  1812.  
  1813.  
  1814. \question 26jun  \courier{INET: Warning: old style ioctl(IP_SET_DEV) called!\}
  1815.  
  1816. You are trying to use the old network configuration utilities; the new
  1817. ones can be found on \ftpon tsx-11.mit.edu in \ftpin
  1818. /pub/linux/packages/net/net-2/binaries.
  1819.  
  1820. Note that they cannot be used just like the old-style programs; see
  1821. the \docref{NET-2 HOWTO\} for instructions on how to set up networking
  1822. correctly.
  1823.  
  1824.  
  1825. \question 26jun  \courier{ld: unrecognized option '-m486'\}
  1826.  
  1827. You have an old version of \fn ld.  Install a newer binutils package
  1828. -- this will contain an updated \fn ld.  Look on \ftpon tsx-11.mit.edu
  1829. in \ftpin /pub/linux/packages/GCC for \fn binutils.tar.z.
  1830.  
  1831.  
  1832. \question 26jun  GCC says \courier{Internal compiler error\}
  1833.  
  1834. If the fault is repeatable (ie, it always happens at the same place in
  1835. the same file --- even after rebooting and trying again, using a
  1836. stable kernel) you have discovered a bug in GCC.  See the GCC Info
  1837. documentation (type Control-\fn h \fn i in Emacs, and select GCC from
  1838. the menu) for details on how to report this -- make sure you have the
  1839. latest version though.
  1840.  
  1841. Note that this is probably not a Linux-specific problem; unless you
  1842. were compiling a program many other Linux users also compile you
  1843. should not post your bug report to any of the \fn comp.os.linux
  1844. groups.
  1845.  
  1846. If the problem is not repeatable you are very probably experiencing
  1847. memory corruption --- see \qref memorycorrupt.
  1848.  
  1849.  
  1850. \question 09sep:memorycorrupt  \fn make says \courier{Error 139\}
  1851.  
  1852. Your compiler driver (\fn gcc) dumped core.  You probably have a
  1853. corrupted, buggy or old version of GCC --- get the latest release.
  1854. Alternatively you may be running out of swap space --- see \qref
  1855. lackofmemory for more info.
  1856.  
  1857. If this doesn't fix the problem you are probably having problems with
  1858. memory or disk corruption.  Check that the clock rate, wait states and
  1859. refresh timing for your SIMMs and cache are correct (hardware manuals
  1860. are sometimes wrong, too).  If so you may have some dodgy SIMMs or a
  1861. faulty motherboard or hard disk or controller.
  1862.  
  1863. Linux, like any Unix, is a very good memory tester --- much better
  1864. than DOS-based memory test programs.
  1865.  
  1866. Reportedly some clone x87 maths coprocessors can cause problems; try
  1867. compiling a kernel with maths emulation [\qref kernelcompile]; you may
  1868. need to use the \fn no387 kernel command line flag on the LILO prompt
  1869. to force the kernel to use it, or it may be able to work and still use
  1870. the 387, with the maths emulation compiled in but mainly unused.
  1871.  
  1872.  
  1873. \question 26jun  \courier{shell-init: permission denied\} when I log in.
  1874.  
  1875. Your root directory and all the directories up to your home directory
  1876. must be readable and executable by everybody.  See the manpage for
  1877. \fn chmod or a book on Unix for how to fix the problem.
  1878.  
  1879.  
  1880. \question 26jun  \courier{No utmp entry.  You must exec ...\} when I log in.
  1881.  
  1882. Your \fn /var/adm/utmp is screwed up.  You should have
  1883. \verbatim
  1884.    > /var/adm/utmp
  1885. \endverbatim
  1886. in your \fn /etc/rc.local or \courier{/etc/rc.d/*\}.  See \qref
  1887. screwedup for how to be able to do this.
  1888.  
  1889.  
  1890. \question 17jun  \courier{Warning - bdflush not running\}
  1891.  
  1892. The development kernel series now uses a better strategy for writing
  1893. cached disk blocks.  In addition to the kernel changes, this involves
  1894. replacing the old \fn update program which used to write everything
  1895. every 30 seconds with a more subtle daemon (actually a pair), known as
  1896. \fn bdflush.
  1897.  
  1898. Get \fn bdflush-n.n.tar.gz from the same place as the kernel source
  1899. code [\qref kernelcompile] and compile and install it; it should be
  1900. started before the usual boot-time filesystem checks.  It will work
  1901. fine with older kernels as well, so there's no need to keep the old
  1902. \fn update around.
  1903.  
  1904.  
  1905. \question 18sep  \courier{Warning: obsolete routing request made.\}
  1906.  
  1907. This is nothing to worry about; it just means that the version of \fn
  1908. route you have is a little out of date compared to the kernel.  You
  1909. can make the message go away by getting a new version of \fn route
  1910. from the same place as the kernel source code [\qref kernelcompile].
  1911.  
  1912.  
  1913. \question 09sep:uncheckedfs  \courier{EXT2-fs: warning: mounting unchecked filesystem\}
  1914.  
  1915. You need to run \fn e2fsck (or \courier{fsck -t ext2\} if you have the
  1916. \fn fsck front-end program) with the \fn -a option to get it to clear
  1917. the `dirty' flag, and then cleanly unmount the partition during each
  1918. shutdown.
  1919.  
  1920. The easiest way to do this is to get the latest \fn fsck, \fn umount
  1921. and \fn shutdown commands, available in Rik Faith's util-linux package
  1922. [\qref ftpsites].  You have to make sure that your /etc/rc* scripts
  1923. use them correctly.
  1924.  
  1925. NB don't try to check a filesystem that's mounted read-write - this
  1926. includes the root partition if you don't see
  1927. \verbatim
  1928.    VFS: mounted root ... read-only
  1929. \endverbatim
  1930. at boot time.  You must arrange for to initially mount the root
  1931. filesystem readonly, check it if necessary, and then remount it
  1932. read-write.  Read the documentation that comes with util-linux to find
  1933. out how to do this.
  1934.  
  1935. Note that you need to specify the \fn -n option to \fn mount to get it
  1936. not to try to update \fn /etc/mtab, since the root filesystem is still
  1937. read-only and this will otherwise cause it to fail !
  1938.  
  1939.  
  1940. \question 09sep:maxcounts  \courier{EXT2-fs warning: maximal count reached\}
  1941.  
  1942. This message is issued by the kernel when it mounts a filesystem
  1943. that's marked as clean, but whose `number of mounts since check'
  1944. counter has reached the predifined value.  The solution is to get the
  1945. latest version of the ext2fs utilities (\fn e2fsprogs-0.5b.tar.gz at
  1946. the time of writing) from the usual sites [\qref ftpsites].
  1947.  
  1948. The maximal number of mounts value can be examined and changed using
  1949. the \fn tune2fs program from this package.
  1950.  
  1951.  
  1952. \question 09sep  \courier{EXT2-fs warning: checktime reached\}
  1953.  
  1954. Kernels from 1.0 onwards support checking a filesystem based on the
  1955. elapsed time since the last check as well as by the number of mounts.
  1956. Get the latest version of the ext2fs utilities [see \qref maxcounts].
  1957.  
  1958.  
  1959. \question 26jun  \fn df says \courier{Cannot read table of mounted filesystems\}
  1960.  
  1961. There is probably something wrong with your \fn /etc/mtab or \fn
  1962. /etc/fstab files.  If you have a reasonably new version of \fn mount,
  1963. \fn /etc/mtab should be emptied or deleted at boot time (in \fn
  1964. /etc/rc.local or \courier{/etc/rc.d/*\}), using something like
  1965. \verbatim
  1966.    rm -f /etc/mtab*
  1967. \endverbatim
  1968.  
  1969. Some versions of SLS have an entry for the root partition in \fn
  1970. /etc/mtab made in \courier{/etc/rc*\} by using \fn rdev.  This is
  1971. incorrect -- the newer versions of \fn mount do this automatically.
  1972.  
  1973. Other versions of SLS have a line in \fn /etc/fstab that looks like:
  1974. \verbatim
  1975.     /dev/sdb1   /root   ext2   defaults
  1976. \endverbatim
  1977. This is wrong.  \fn /root should read simply \courier{/\}.
  1978.  
  1979.  
  1980. \question 17jun  \fn fdisk says \courier{Partition X has different physical/logical ...\}
  1981.  
  1982. If the partition number (\fn X, above) is 1 this is the same problem
  1983. as \qref badpart1.
  1984.  
  1985. If the partition begins or ends on a cylinder numbered beyond 1024
  1986. this is because standard DOS disk geometry information format in the
  1987. partition table can't cope with cylinder numbers with more than 10
  1988. bits.  You should see \qref largedisk.
  1989.  
  1990.  
  1991. \question 20sep:badpart1  \courier{fdisk: Partition 1 does not start on cylinder boundary\}
  1992.  
  1993. The version of \fn fdisk that comes with many Linux systems creates
  1994. partitions that fail its own validity checking.  Unfortunately if
  1995. you've already installed your system there's not much you can do about
  1996. this, apart from copying the data off the partition, deleting and
  1997. remaking it, and copying the data back.
  1998.  
  1999. You can avoid the problem by getting the latest version of \fn fdisk,
  2000. from Rik Faith's util-linux package (available on all good FTP sites).
  2001. Alternatively, if you are creating a new partition 1 that starts in
  2002. the first cylinder, you can do the following to get a partition that
  2003. fdisk likes.
  2004.  
  2005. 1. Create partition 1 in the normal way.  A \fn p listing will produce
  2006. the mismatch complaint.
  2007.  
  2008. 2. Type \fn u to set sector mode and do \fn p again.  Copy down the
  2009. number from the "End" column.
  2010.  
  2011. 3. Delete partition 1.
  2012.  
  2013. 4. While still in sector mode recreate partition 1.  Set the first
  2014. sector to match the number of sectors per track.  This is the sector
  2015. number in the first line of the \fn p output.  Set the last sector to
  2016. the value noted in 2. above.
  2017.  
  2018. 5. Type \fn u to reset cylinder mode and continue with other
  2019. partitions.
  2020.  
  2021. Ignore the message about unallocated sectors - they refer to the
  2022. sectors on the first track apart from the Master Boot Record, which
  2023. are not used if you start the first partition in track 2.
  2024.  
  2025.  
  2026. \question 26jun  \fn fdisk says \courier{partition n has an odd number of sectors\}
  2027.  
  2028. The PC disk partitioning scheme works in 512-byte sectors, but Linux
  2029. uses 1K blocks.  If you have a partition with an odd number of sectors
  2030. the last sector is wasted.  Ignore the message.
  2031.  
  2032.  
  2033. \question 09sep  mtools says \courier{cannot initialise drive XYZ\}
  2034.  
  2035. This means that mtools is having trouble accessing the drive.  This
  2036. can be due to several things.
  2037.  
  2038. Often this is due to the permissions on floppy drive devices
  2039. (\courier{/dev/fd0*\} and \courier{/dev/fd1*\}) being incorrect ---
  2040. the user running mtools must have the appropriate access.  See the
  2041. manpage for \fn chmod for details.
  2042.  
  2043. Most versions of mtools distributed with Linux systems (not the
  2044. standard GNU version) use the contents of a file \fn /etc/mtools to
  2045. discover which devices and densities to use, in place of having this
  2046. information compiled into the binary.  Mistakes in this file often
  2047. cause problems.  There is often no documentation about this ---
  2048. distribution packagers please note that this is \italic{evil\}.
  2049.  
  2050. For the easiest way to access your DOS files (especially those on a
  2051. hard disk partition) see \qref msdosfs.  Note - you should never use
  2052. mtools to access files on an msdosfs mounted partition or disk !
  2053.  
  2054.  
  2055. \question 31jan  At the start of booting: \courier{Memory tight\}
  2056.  
  2057. This means that you have an extra large kernel that means that Linux
  2058. has to do some special memory-management magic to be able to boot
  2059. itself from the BIOS.  It isn't related to the amount of physical
  2060. memory in your machine.  Ignore the message, or compile a kernel
  2061. containing only the drivers and features you need [\qref
  2062. kernelcompile].
  2063.  
  2064.  
  2065. \comment ######################################################################
  2066.  
  2067. \section  The X Window System
  2068.  
  2069. \question 09sep:x  Does Linux support X Windows ?
  2070.  
  2071. Yes.  Linux uses XFree86 (the current version is 3.1.1, which is based
  2072. on X11R6).  You need to have a video card which is supported by
  2073. XFree86.  See the Linux XFree86 HOWTO for more details.
  2074.  
  2075. Some of the Linux releases -- MCC, for example -- don't come with X
  2076. Windows already included; however you can easily download and install
  2077. it from \ftpsilent{sunsite.unc.edu\}\ftpin /pub/Linux/X11/Xfree86-* on
  2078. \fn sunsite.unc.edu and its mirror sites.  Read the \docref{XFree86
  2079. HOWTO\} for installation instructions.
  2080.  
  2081. Other releases -- Slackware, Debian, TAMU and SLS, for example -- come
  2082. with X Windows already included
  2083.  
  2084.  
  2085. \question 09sep  Where can I get an \fn XF86Config for my system ?
  2086.  
  2087. See the Linux XFree86 HOWTO.
  2088.  
  2089. You'll need to put together your own \fn XF86Config file, because it
  2090. depends on the exact combination of video card and monitor you have.
  2091. It's not that hard to do -- read the instructions that came with
  2092. XFree86, in \fn /usr/X11R6/lib/X11/etc.  The file you probably most
  2093. need to look at is \fn README.Config.
  2094.  
  2095. For a quick start you may run the program \fn xf86config.  Note that
  2096. \fn ConfigXF86 is now obsolete and you shouldn't use it.
  2097.  
  2098. Please don't post to \fn comp.os.linux.x asking for an \fn XF86Config,
  2099. and please don't answer such requests - especially not in the group.
  2100.  
  2101.  
  2102. \question 26jun  \fn xterm logins show up strangely in \fn who, \fn finger
  2103.  
  2104. The \fn xterm that comes with XFree86 2.1 and earlier doesn't
  2105. correctly understand the format that Linux uses for the \fn
  2106. /var/adm/utmp file, where the system records who is logged in.  It
  2107. therefore doesn't set all the information correctly.
  2108.  
  2109. XFree86 3.1 fixes this problem.
  2110.  
  2111.  
  2112. \question 26jun  I can't get X Windows to work right.
  2113.  
  2114. Read the XFree86 HOWTO - note the question and answer section.
  2115.  
  2116. Try reading \newsgroup comp.windows.x.i386unix -- specifically read
  2117. the the FAQ for that group.
  2118.  
  2119. Please don't post X Windows or XFree86 related questions to \newsgroup
  2120. comp.os.linux.x unless they are Linux-specific.
  2121.  
  2122.  
  2123. \comment ######################################################################
  2124.  
  2125. \section  Questions applicable to very out-of-date software
  2126.  
  2127. The questions in this section are only relevant to users of software
  2128. that is at least 3 months old.
  2129.  
  2130. Please let me know if you find the answer to a problem you had here,
  2131. as unused questions in this section will eventually disappear [\qref
  2132. feedback].
  2133.  
  2134.  
  2135. \question 26jun  \fn fdisk says \courier{cannot use nnn sectors of this partition\}
  2136.  
  2137. Originally Linux only supported the Minix filesystem, which cannot use
  2138. more than 64Mb per parition.  This limitation is not present in the
  2139. more advanced filesystems now available, such as ext2fs (the 2nd
  2140. version of the Extended Filesystem) and xiafs (Qi Xia's filesystem).
  2141.  
  2142. If you intend to use ext2fs or xiafs you can ignore the message.
  2143.  
  2144.  
  2145. \question 09sep  GCC sometimes uses huge amounts of virtual memory and thrashes
  2146.  
  2147. Older versions of GCC had a bug which made them use lots of memory if
  2148. you tried to compile a program which had a large static data table in
  2149. it.
  2150.  
  2151. You can either upgrade your version of GCC to at least version 2.5, or
  2152. add more swap if necessary and just grin and bear it; it'll work in
  2153. the end.
  2154.  
  2155.  
  2156. \question 09sep  My keyboard goes all funny after I switch VC's.
  2157.  
  2158. This is a bug in kernel versions before 0.99pl14-alpha-n.  Sometimes
  2159. Linux loses track of what modifier keys (Shift, Alt, Control etc.) are
  2160. pressed or not, and believes that one or more are pressed when they
  2161. are not.  The solution is to press and release each of the modifier
  2162. keys (without pressing any other keys) --- this will ensure that Linux
  2163. knows what state the keyboard is actually in.
  2164.  
  2165. This problem often occurs when switching out of X windows; it can
  2166. sometimes be avoided by releasing Ctrl and Alt very quickly after
  2167. pressing the F-key of the VC you are switching to.
  2168.  
  2169.  
  2170. \comment ######################################################################
  2171.  
  2172. \section  How to get further assistance
  2173.  
  2174. \question 26jun:notanswered  You still haven't answered my question !
  2175.  
  2176. Please read all of this answer before posting.  I know it's a bit
  2177. long, but you may be about to make a fool of yourself in front of
  2178. 50000 people and waste hundreds of hours of their time.  Don't you
  2179. think it's worth it to spend some of your time reading and following
  2180. these instructions ?
  2181.  
  2182. If you think an answer is incomplete or inaccurate, please mail Ian
  2183. Jackson at \email ijackson@nyx.cs.du.edu.
  2184.  
  2185. Read the appropriate Linux Documentation Project books - see \qref
  2186. howtos.
  2187.  
  2188. If you're a Unix newbie read the FAQ for \newsgroup
  2189. comp.unix.questions, and those for any of the other
  2190. \courier{comp.unix.*\} groups that may be relevant.
  2191.  
  2192. Linux is a Unix clone, so almost everything you read there will apply
  2193. to Linux.  Those FAQs can, like all FAQs, be found on \ftpon
  2194. rtfm.mit.edu in \ftpin /pub/usenet/news.answers (the \fn
  2195. mail-server@rtfm.mit.edu can send you these files, for those who don't
  2196. have FTP access).  There are mirrors of \courier{rtfm\}'s FAQ
  2197. artchives on various sites - check the Introduction to \fn *.answers
  2198. posting, posted, or look in \fn news-answers/introduction in the
  2199. directory above.
  2200.  
  2201. Check the relevant HOWTO for the subject in question, if there is one,
  2202. or an appropriate old-style sub-FAQ document.  Check the FTP sites.
  2203.  
  2204. Try experimenting --- that's the best way to get to know Unix and Linux.
  2205.  
  2206. Read the documentation.  Check the manpages (type \courier{man man\}
  2207. if you don't know about manpages.  Try \courier{man -k <subject>\} ---
  2208. it often lists useful and relevant manpages.
  2209.  
  2210. Check the Info documentation (type \courier{C-h i\}, i.e. Control H
  2211. followed by I in Emacs) --- NB this isn't just for Emacs; for example
  2212. the GCC documentation lives here as well.
  2213.  
  2214. There will also often be a \fn README file with a package giving
  2215. installation and/or usage instructions.
  2216.  
  2217. Make sure that you don't have a corrupted or out-of-date copy of the
  2218. program in question.  If possible, download it again and reinstall it
  2219. --- perhaps you made a mistake the first time.
  2220.  
  2221. Read \newsgroup comp.os.linux.announce --- this often contains very
  2222. important information for all Linux users.
  2223.  
  2224. General X-Windows questions belong in \newsgroup
  2225. comp.windows.x.i386unix, not in \fn comp.os.linux.x.  But read the
  2226. group first (including the FAQ), before you post !
  2227.  
  2228. Only if you have done all of these things and are still stuck should
  2229. you post to the appropriate \courier{comp.os.linux.*\} newsgroup.  Make
  2230. sure you read the next question, \qref whatinposting, first.
  2231.  
  2232.  
  2233. \question 09sep:whatinposting  What to put in a request for help
  2234.  
  2235. Please read carefully the following advice about how to write your
  2236. posting or email.  Taking heed of it will greatly increase the chances
  2237. that an expert and/or fellow user reading it will have enough
  2238. information and motivation to reply.
  2239.  
  2240. This advice applies both to postings asking for advice and to personal
  2241. email sent to experts and fellow users.
  2242.  
  2243. Make sure you give full details of the problem, including:
  2244. \call startlist
  2245. \call item
  2246. What program, exactly, you are having problems with.
  2247. Include the version number if known and say where you got it.
  2248. Many standard commands tell you their version number if you
  2249. give them a \fn --version option.
  2250.  
  2251. \call item
  2252. Which Linux release you're using (MCC, Slackware, Debian or whatever)
  2253. and what version of that release.
  2254.  
  2255. \call item
  2256. The \italic{exact\} and \italic{complete\} text of any error messages
  2257. printed.
  2258.  
  2259. \call item
  2260. Exactly what behaviour you were expecting, and exactly what
  2261. behaviour you observed.  A transcript of an example session is a good
  2262. way of showing this.
  2263.  
  2264. \call item
  2265. The contents of any configuration files used by the program in
  2266. question and any related programs.
  2267.  
  2268. \call item
  2269. What version of the kernel and of the shared libraries you are using.
  2270. The kernel version can be found by typing \courier{uname -a\}, and the
  2271. shared library version by typing \courier{ls -l /lib/libc.so.4\}.
  2272.  
  2273. \call item
  2274. Details of what hardware you're running on, if it seems appropriate.
  2275.  
  2276. \call endlist
  2277. You are in little danger of making your posting too long unless you
  2278. include large chunks of source code or uuencoded files, so err on the
  2279. side of giving too much information.
  2280.  
  2281. Use a clear, detailed Subject line.  Don't put things like `doesn't
  2282. work', `Linux', `help' or `question' in it --- we already knew that !
  2283. Save the space for the name of the program, a fragment of the error
  2284. message, summary of the unusual behaviour, etc.
  2285.  
  2286. If you are reporting an `unable to handle kernel paging request'
  2287. message, follow the instructions in the Linux kernel sources \fn
  2288. README for turning the numbers into something more meaningful.  If you
  2289. don't do this noone who reads your post will be able to do it for you,
  2290. as the mapping from numbers to function names varies from one kernel
  2291. to another.
  2292.  
  2293. Put a summary paragraph at the top of your posting.
  2294.  
  2295. At the bottom of your posting, ask for responses by email and say
  2296. you'll post a summary.  Back this up by using \courier{Followup-To:
  2297. poster\}.  Then, do actually post a summary in a few days or a week or
  2298. so.  Don't just concatenate the replies you got --- summarise.
  2299. Putting the word \fn SUMMARY in your summary's Subject line is also a
  2300. good idea.  Consider submitting the summary to comp.os.linux.announce.
  2301.  
  2302. Make sure your posting doesn't have an inappropriate \fn References
  2303. header line.  This marks your article as part of the thread of the
  2304. article referred to, which will often cause it to be junked by the
  2305. readers with the rest of a boring thread.
  2306.  
  2307. You might like to say in your posting that you've read this FAQ and
  2308. the appropriate HOWTOs - this may make people less likely to skip your
  2309. posting.
  2310.  
  2311. Remember that you should not post email sent to you personally without
  2312. the sender's permission.
  2313.  
  2314.  
  2315. \question 21dec  I want to mail someone about my problem.
  2316.  
  2317. Try to find the author or developer of whatever program or component
  2318. is causing you difficulty.  If you have a contact point for the Linux
  2319. distribution you are using you should use it.
  2320.  
  2321. Please put everything in your email that you would put in a posting
  2322. asking for help.
  2323.  
  2324. Finally, remember that despite the fact that most of the Linux
  2325. community are very helpful and responsive to emailed questions you'll
  2326. be asking for help from an unpaid volunteer, so you have no right to
  2327. expect an answer.
  2328.  
  2329.  
  2330. \comment ######################################################################
  2331.  
  2332. \section  Administrative information and acknowledgements
  2333.  
  2334. \question 26jun:feedback  Feedback is invited
  2335.  
  2336. Please send me your comments on this FAQ.
  2337.  
  2338. I accept submissions for the FAQ in any format;  All contributions
  2339. comments and corrections are gratefully received.
  2340.  
  2341. Please send them to \email ijackson@nyx.cs.du.edu.
  2342.  
  2343. If you wish to refer to a question(s) in the FAQ it's most useful for
  2344. me if you do so by the question heading, rather than the number, as
  2345. the question numbers are generated automatically and I don't see them
  2346. in the source file I edit.
  2347.  
  2348. I prefer comments in English to patchfiles - I write the FAQ in a
  2349. different internal format anyway, so I can't use a patchfile.
  2350.  
  2351.  
  2352. \question 26jun:formats  Formats in which this FAQ is available
  2353.  
  2354. This document is available as an ASCII text file, an Emacs Info
  2355. document, an HTML World Wide Web page, PostScript and as a USENET news
  2356. posting.
  2357.  
  2358. The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter
  2359. file (from which the PostScript is produced) are generated
  2360. automatically by a Perl script which takes as input a file in the
  2361. Bizarre Format with No Name.
  2362.  
  2363. The output files \fn linux-faq.ascii, \fn .info and \fn .ps and a
  2364. tarfile \fn linux-faq.source.tar.gz, containing the BFNN source and
  2365. Perl script converter, are available in the \fn docs directories of
  2366. the major Linux FTP sites.
  2367.  
  2368. The HTML version of this FAQ is available as
  2369. \courier{http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html\}
  2370. and is mirrored at \fn www.li.org and other sites.
  2371.  
  2372. The USENET version is posted regularly to \newsgroup
  2373. comp.os.linux.announce, \newsgroup comp.os.linux.answers, \newsgroup
  2374. comp.answers and \newsgroup news.answers.
  2375.  
  2376.  
  2377. \question 26jun  Authorship and acknowledgements
  2378.  
  2379. This FAQ was compiled by Ian Jackson \email ijackson@nyx.cs.du.edu,
  2380. with assistance and comments from others too numerous to mention.  It
  2381. was loosely based on the original Linux FAQ by Marc-Michel Corsini.
  2382.  
  2383. Special thanks are due to Matt Welsh, who moderates \newsgroup
  2384. comp.os.linux.announce and \newsgroup comp.os.linux.answers, used to
  2385. coordinate the HOWTOs and has written substantial portions of many of
  2386. them, to Greg Hankins, who currently coordinates the HOWTOS, and to
  2387. Marc-Michel Corsini.  Thanks also to the contributors to the previous
  2388. Linux FAQ, and to those sent me comments about this FAQ, and who
  2389. answered questions on the newsgroup.
  2390.  
  2391. Last but not least, thanks to Linus Torvalds and the other
  2392. contributors to Linux for giving us something to write about !
  2393.  
  2394.  
  2395. \question 30oct:faqcopyright  Disclaimer and Copyright
  2396.  
  2397. Note that this document is provided as is.  The information in it is
  2398. \italic{not\} warranted to be correct; you use it at your own risk.
  2399.  
  2400. Linux Frequently Asked Questions with Answers is Copyright 1994, 1995
  2401. by Ian Jackson \email ijackson@nyx.cs.du.edu.
  2402.  
  2403. It may be reproduced and distributed in its entirety (including this
  2404. authorship, copyright and permission notice) provided that either:
  2405. \call startlist
  2406. \call item
  2407. the distribution is not commercial (commercial means any
  2408. situation in which you benefit financially - directly or indirectly
  2409. such as by inclusion in a publication which carries commercial
  2410. advertising), or
  2411. \call item
  2412. the distribution is in machine-readable form (ie, a form intended to
  2413. be easily processed by a computer).
  2414. \call endlist
  2415. Note that this restriction is not intended to prohibit charging for
  2416. the service of printing or copying a document supplied by your
  2417. customer.
  2418.  
  2419. Any distribution of a partial copy or extract, a translation or a
  2420. derivative work must be approved by me before distribution.  Email me
  2421. - I'll probably be happy to oblige !
  2422.  
  2423. Exceptions to these rules may be granted, and I shall be happy to
  2424. answer any questions about this copyright --- write to Ian Jackson,
  2425. Churchill College, Cambridge, CB3 0DS, United Kingdom or email \email
  2426. ijackson@nyx.cs.du.edu.  These restrictions are here to protect the
  2427. contributors, not to restrict you as educators and learners.
  2428.  
  2429. Ian Jackson asserts the right to be identified as the author of this
  2430. work, and claims the moral rights of paternity and integrity, in
  2431. accordance with the Copyright, Designs and Patents Act, 1988.
  2432.  
  2433. \copyto POST
  2434. END-OF-PORTION
  2435. echo posting part 1 ...
  2436. inews -h <linux-faq.post-part1
  2437. sleep 20
  2438. echo posting part 2 ...
  2439. inews -h <linux-faq.post-part2
  2440. \endcopy
  2441. \comment Here it ends!
  2442.